top of page

Aria Operations CASA API

Brock Peterson

The Aria Operations REST API surface found at /suite-api gets most of the attention, but there is another one available at /casa/api-guide. This is the Cluster and Slice Administration API, and while not Swagger based, it's fairly detailed. It provides a surface for API endpoints associated with the Operations Cluster itself, Status, Nodes, Management, and more. Let's explore.


First, we'll authenticate using Basic Auth:

We can use that accessToken in all subsequent calls, to get things like Cluster status, service health, add Nodes to the Cluster, and more. Capturing Cluster Status looks like this.

This doesn't give me exactly what I want though, I'd like to know if the Operations Cluster is Online/Offline, as shown in the Admin UI. There is an undocumented API endpoints for this: /casa/view/cluster.


There is another endpoint at /casa/sysadmin/cluster/online_state which gives Cluster State as well, running GET /casa/sysadmin/cluster/online_state is undocumented.

Which makes sense as my Operations Cluster is in fact Online, as shown here from the Admin UI.

Let's take the Cluster Offline via the CASA API and the Body listed below along with a POST /casa/sysadmin/cluster/online_state

One executed, here's the Cluster Status in the Admin UI.

Checking the Cluster State shows it as Offline.

Let's bring it back Online.

And here it is!

A bunch more we can do with the Operations CASA API, explore it!


Comments


    bottom of page