Skip to main content

Query warehouse operation status

Queries the status of the specified warehouse operation.

NOTE

This operation requires the View cluster privilege.

Request

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

Path variables

ParameterExample valueRequiredTypeDescription
cluster_idff09d6ac-b821-447d-b4c1-59167d022c8bYesStringThe ID of the cluster.

URL parameters

ParameterExample valueRequiredTypeDescription
order_id9d71aae6-a35da-40d5-b213-27bb1f57ifj5YesStringThe order ID of the operation (action).

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": {
"infra_action_state": "Succeeded"
}
}

Response elements

ParameterExample 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 returns the object of warehouse operation information.
data.infra_action_state-StringThe state of the warehouse operation. Valid values:
  • ONGOING
  • SUCCEEDED
  • FAILED
  • CANCELED
data.err_msg-StringThe reason that the warehouse operation failed. This field is only returned when infra_action_state is FAILED.
message-StringThe error message. This element is returned only when the code returned is not 20000.
NOTICE
Do not conclude whether a request succeeded or failed based on the return value of message.