Adds one or more created ECS instances as compute nodes to a cluster.
Description
- The compute nodes to be added are in the Stopped state.
- After the compute nodes are added to the cluster, the operating systems of the nodes are replaced with the operating system specified by the ImageId parameter.
- The hosts of the compute nodes must be different from those of the existing compute nodes in the cluster. Otherwise, the add operation fails.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | AddExistedNodes |
The operation that you want to perform. Set the value to AddExistedNodes. |
ClusterId | String | Yes | ehpc-hz-FYUr32**** |
The ID of the cluster. You can call the ListClusters operation to query the cluster ID. |
ImageId | String | Yes | centos_7_06_64_20G_alibase_20190711.vhd |
The ID of the image that is specified for the compute nodes. The image must meet the following requirements:
You can call the ListImages and ListCustomImages operations to query the image ID. |
ImageOwnerAlias | String | Yes | system |
The type of the image. Valid values:
Default value: system |
Instance.N.Id | String | Yes | i-bp16mxn6mt3t7ftk**** |
The Nth node ID. N starts from 1. Valid values: 1 to 100. |
JobQueue | String | No | workq |
The queue in the cluster to which the node is to be added. |
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=AddExistedNodes
&ClusterId=ehpc-hz-FYUr32****
&ImageId=centos_7_06_64_20G_alibase_20190711.vhd
&ImageOwnerAlias=system
&Instance.1.Id=i-bp16mxn6mt3t7ftk****
&<Common request parameters>
Sample success responses
XML
format
<AddExistedNodesResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
<TaskId>04F0F334-1335-436C-A1D7-6C044FE7****</TaskId>
</AddExistedNodesResponse>
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.