Queries the status of an interactive command.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListInvocationStatus

The operation that you want to perform. Set the value to ListInvocationStatus.

ClusterId String Yes ehpc-hz-FYUr32****

The ID of the cluster.

You can call the ListClusters operation to query the cluster ID.

CommandId String Yes c-hz01v8x80o3****

The ID of the command.

You can call the ListCommands operation to query the command ID.

Response parameters

Parameter Type Example Description
CommandId String c-hz01v8x80o3****

The ID of the command.

InvokeInstances Array of InvokeInstance

The list of statuses. A list is returned for each node.

InvokeInstance
InstanceId String i-uf6abz34m2714bp4****

The ID of the node.

InstanceInvokeStatus String Finished

The status of the node. Valid values:

  • Finished
  • Running
  • Failed
  • Stopped
InvokeStatus String Finished

The overall status of all nodes in the cluster. Valid values:

  • Finished
  • Running
  • Failed
  • Stopped
RequestId String 04F0F334-1335-436C-A1D7-6C044FE7****

The ID of the request.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListInvocationStatus
&ClusterId=ehpc-hz-FYUr32****
&CommandId=c-hz01v8x80o3****
&<Common request parameters>

Sample success responses

XML format

<ListInvocationStatusResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
      <CommandId>c-hz01v8x80o3****</CommandId>
      <InvokeStatus>Finished</InvokeStatus>
      <InvokeInstances>
            <InvokeInstance>
                  <InstanceId>i-uf6abz34m2714bp4****</InstanceId>
                  <InstanceInvokeStatus>Finished</InstanceInvokeStatus>
            </InvokeInstance>
            <InvokeInstance>
                  <InstanceId>i-uf68t1zu3jkhs8wy****</InstanceId>
                  <InstanceInvokeStatus>Finished</InstanceInvokeStatus>
            </InvokeInstance>
      </InvokeInstances>
</ListInvocationStatusResponse>

JSON format

{
    "ListInvocationStatusResponse": {
        "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
        "CommandId": "c-hz01v8x80o3****",
        "InvokeStatus": "Finished",
        "InvokeInstances": {
            "InvokeInstance": [
                {
                    "InstanceId": "i-uf6abz34m2714bp4****",
                    "InstanceInvokeStatus": "Finished"
                },
                {
                    "InstanceId": "i-uf68t1zu3jkhs8wy****",
                    "InstanceInvokeStatus": "Finished"
                }
            ]
        }
    }
}

Error codes

HttpCode Error code Error message Description
400 InvalidParams The specified parameter %s is invalid. The error message returned because the following parameter is invalid: %s.
400 NotEnabled You have not enabled this service The error message returned because the service is not activated for your account.
400 InDebt Your account has overdue payments. The error message returned because your account has overdue payments.
403 InvalidClusterStatus The operation failed due to invalid cluster status. The error message returned because the operation is not supported while the cluster is in the current state.
403 ConflictOpt A conflicting operation is running. The error message returned because an operation that conflicts with the current operation is in progress. Try again later.
404 ClusterNotFound The specified cluster does not exist. The error message returned because the specified cluster does not exist.
404 ObjectNotFound The specified object is not found. The error message returned because the specified object does not exist.
407 NotAuthorized You are not authorized by RAM for this request. The error message returned because you are not authorized by RAM for this request.
406 EcsError An error occurred while calling the ECS API operation. The error message returned because the ECS API call has failed.
406 AgentError The agent service request failed. The error message returned because the proxy request has failed.
406 AliyunError An Alibaba Cloud product error occurred. The error message returned because the operation has failed to call another Alibaba Cloud service.
409 PartFailure Part of the batch operation failed. The error message returned because the batch operation has failed.
500 UnknownError An unknown error occurred. The error message returned because an unknown error has occurred.
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The service is temporarily unavailable.

For a list of error codes, visit the API Error Center.