Resets one or more compute nodes.

Description

After a node is reset, the operating system and software return to their initial states. To ensure that jobs run as expected, we recommend that you do not reset running nodes unless you need to perform crash recovery.

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 ResetNodes

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

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

The ID of the cluster.

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

Instance.N.Id String No i-bp13p7vlcb1uihfv****

The ID of the compute node that you want to reset. Valid values of N: 1 to 100

You can call the ListNodes operation to query the IDs of the compute nodes.

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=ResetNodes
&ClusterId=ehpc-hz-FYUr32****
&Instance.1.Id=i-bp13p7vlcb1uihfv****
&<Common request parameters>

Sample success responses

XML format

<ResetNodesResponse>
      <TaskId>04F0F334-1335-436C-A1D7-6C044FE7****</TaskId>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
</ResetNodesResponse>

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.