Check Cluster Status on OCI¶
-
GET/api/v2/clusters/<cluster ID/cluster-label>¶
Use this API to get the current state of a cluster.
Required Role¶
The following roles can make this API call:
- A user who is part of the system-user/system-admin group.
- A user invoking this API must be part of a group associated with a role that allows viewing a cluster configuration. See Managing Groups and Managing Roles for more information.
Request API Syntax¶
Here is the API request syntax to know the current status of a cluster.
curl -X GET -H "X-AUTH-TOKEN:$X_AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://oraclecloud.qubole.com/api/v2/clusters/<cluster ID/cluster label>/state"
Sample API Request¶
Here is the sample API request to know the current status of a cluster that has 290 as its ID.
curl -X GET -H "X-AUTH-TOKEN:$X_AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://oraclecloud.qubole.com/api/v2/clusters/290/state"