Skip to main content

Query status of a cluster

Queries the status of a CelerData cluster.

Request

Basic information
HTTP URLhttps://cloud-api.celerdata.com/api/1.0/clusters/:cluster_id/state
HTTP methodGET
Frequency600/minute

Path variables

ParameterExample valueRequiredTypeDescription
cluster_id4ae48a3f-f840-46fa-b0e7-0709a220fa40YesStringThe ID of the cluster. You can sign in to the CelerData Cloud BYOC console and then navigate to the Cluster properties section of the cluster's Overview page to obtain the cluster ID.

:<variable_name> indicates a URL path variable in web development tools such as Postman. :cluster_id in the above URL path, as such, indicates the ID of the cluster you want to query. However, if you use other tools such as curl, you need to replace :cluster_id with the actual cluster ID by hand in the curl command.

Header parameters

ParameterExample valueRequiredTypeDescription
AuthorizationBearer OGQ5MDA4MZGTNJMWNS0ZY2Y2LWFJNZYTOTBINMZIYTGZZDUYYesStringThe access token used to access the CelerData Cloud BYOC API. Format: Bearer <access_token>.

See Obtain access token.

Response

Sample response

{
"code": 20000,
"data": {
"abnormal_reason": "",
"cluster_state": "Suspended"
}
}

Response elements

ParameterSub-attributeExample valueTypeDescription
code20000IntegerThe error code. If the error code returned is 20000, the request succeeded. If any other error code is returned, the request failed.
data--ObjectThe result of the API call. The data object may not be returned for some API actions. It consists of the following elements: account_idusagedetails.
abnormal_reasonnullStringThe reason why the cluster is abnormal. A value is returned for this element if the cluster is abnormal.
cluster_stateSuspendedStringThe status of the cluster. Valid values:
  • Abnormal: The cluster is abnormal.
  • Deploying: The cluster is being deployed.
  • Resuming: The cluster is being resumed.
  • Running: The cluster is running.
  • Scaling: The cluster is being scaled.
  • Suspending: The cluster is being suspended.
  • Suspended: The cluster is suspended.
  • Releasing: The cluster is being released.
  • Released: The cluster is released.