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 users can make this API call:

  • Users who belong to the system-user or system-admin group.

  • Users who belong to 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"