All Products
Search
Document Center

Elastic High Performance Computing:AddExistedNodes

Last Updated:Jul 31, 2025

Adds one or more existing ECS instances as compute nodes to a specified cluster.

Operation 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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ehpc:AddExistedNodes
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the cluster.

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

ehpc-hz-FYUr32****
ImageIdstringYes

The ID of the image that is specified for the compute nodes. The image must meet the following requirements:

  • The operating system that is specified for the image must be the same as that of the existing cluster nodes. For example, if the operating system of the cluster nodes is CentOS, you can select only a CentOS image.
Note If you add nodes to a hybrid cloud cluster that supports multiple operating systems, you can select a Windows Server image or a CentOS image when the operating system of the cluster nodes is Windows.
  • The major version of the image specified for the compute nodes that you want to add must be the same as that of the image of the cluster. For example, if the version of the cluster image is CentOS 7.x, the version of the image specified for the compute nodes must be CentOS 7.x.

You can call the ListImages and ListCustomImages operations to query the image ID.

centos_7_06_64_20G_alibase_20190711.vhd
JobQueuestringNo

The queue in the cluster to which the node is to be added.

workq
ImageOwnerAliasstringYes

The type of the images. Valid values:

  • system: public image.
  • self: custom image
  • others: shared image
  • marketplace: Alibaba Cloud Marketplace image

Default value: system.

system
Instancearray<object>Yes

The information about the node that you want to add.

objectYes
IdstringYes

The Nth node ID. N starts from 1. Valid values: 1 to 100.

i-bp16mxn6mt3t7ftk****

Response parameters

ParameterTypeDescriptionExample
object
TaskIdstring

The task ID.

04F0F334-1335-436C-A1D7-6C044FE7****
RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE7****

Examples

Sample success responses

JSONformat

{
  "TaskId": "04F0F334-1335-436C-A1D7-6C044FE7****",
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParamsThe specified parameter %s is invalid.The specified parameter %s is invalid.
400NotEnabledYou have not enabled this serviceYou have not enabled this service
400InDebtYour account has overdue payments.Your account has overdue payments.
403TooManyComputesThe number of computing nodes exceeds the quota.The number of computing nodes exceeds the quota.
403InvalidClusterStatusThe operation failed due to invalid cluster status.The cluster status does not support the operation.
403InvalidOptThe specified operation is invalid. Please try again later. If the problem still exists, submit a ticket.-
403ConflictOptA conflicting operation is running.A conflicting operation is running. Please try again later.
403ImageNotSupportedThe specified image is not supported.The specified image does not exist. Change the image and try again.
404ImageNotFoundThe specified image does not exist.The specified image does not exist. Please verify the parameter.
404ClusterNotFoundThe specified cluster does not exist.The specified instance does not exist.
404VolumeNotFoundThe specified volume does not exist.The specified storage does not exist. Please verify the parameter.
404ManagerNotFoundThe manager nodes do not exist or their status is abnormal.The manager nodes do not exist or their status is abnormal.
404ObjectNotFoundThe specified object is not found.The specified object does not exist. Please verify the parameter.
406EcsErrorAn error occurred while calling the ECS API operation.ECS API call error. %s
406DbErrorA database service error occurred.Database request failed.
406AliyunErrorAn Alibaba Cloud product error occurred.Alibaba Cloud product error. %s
407NotAuthorizedYou are not authorized by RAM for this request.The request is not authorized by RAM.
409PartFailurePart of the batch operation failed.Part of the batch operation failed.
500UnknownErrorAn unknown error occurred.An unknown error occurred.
503ServiceUnavailableThe request has failed due to a temporary failure of the serverThe request has failed due to a temporary failure of the server.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history