Queries the execution status of the 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.

CommandId String Yes c-f4682204a89949979d75e76700e0****

The ID of the command.

Response parameters

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

The ID of the command.

InvokeInstances Array of InvokeInstance

An array of execution statuses. An entry is returned for each node.

InvokeInstance
InstanceId String i-uf6abz34m2714bp4****

The ID of the node instance.

InstanceInvokeStatus String Finished

The status of the command on the node instance. Valid values:

  • Finished: The command has finished.
  • Running: The command is running.
  • Failed: The command has failed.
  • Stopped: The command is stopped.
InvokeStatus String Finished

The status of the command on all node instances. Valid values:

  • Finished: The command has finished.
  • Running: The command is running.
  • Failed: The command has failed.
  • Stopped: The command is stopped.
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<ListInvocationStatusResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
      <CommandId>c-f4682204a89949979d75e76700e0****</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-f4682204a89949979d75e76700e0****",
        "InvokeStatus": "Finished",
        "InvokeInstances": {
            "InvokeInstance": [
                {
                    "InstanceId": "i-uf6abz34m2714bp4****",
                    "InstanceInvokeStatus": "Finished"
                },
                {
                    "InstanceId": "i-uf68t1zu3jkhs8wy****",
                    "InstanceInvokeStatus": "Finished"
                }
            ]
        }
    }
}

Error codes

HttpCode Error code Error message Description
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The server is temporarily unavailable.

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