Stops one or more nodes in a cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | StopNodes |
The operation that you want to perform. Set the value to StopNodes. |
ClusterId | String | Yes | ehpc-hz-FYUr32**** |
The ID of the cluster. You can call the ListClusters operation to query the cluster ID. |
Role | String | No | Compute |
The role of the node. Valid values:
Default value: Compute |
Instance.N.Id | String | No | i-bp13p7vlcb1uihf**** |
The ID of the Nth node that you want to stop. Valid values of N: 1 to 100. You can call the ListNodes operation to query the node ID. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE7**** |
The ID of the request. |
TaskId | String | 04F0F334-1335-436C-A1D7-6C044FE7**** |
The ID of the task. |
Examples
Sample requests
https://ehpc.cn-hangzhou.aliyuncs.com/?Action=StopNodes
&ClusterId=ehpc-hz-FYUr32****
&Instance.1.Id=i-bp13p7vlcb1uihf****
&<Common request parameters>
Sample success responses
XML
format
<StartNodesResponse>
<TaskId>04F0F334-1335-436C-A1D7-6C044FE7****</TaskId>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
</StartNodesResponse>
JSON
format
{
"TaskId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****"
}
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 service is temporarily unavailable. |
For a list of error codes, visit the API Error Center.