Add ECS instances to a cluster.

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 header

Request syntax

POST /pop/v5/resource/cluster_member HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
clusterId String Yes B3f3e77 b-462e-****-****-bec8727a4dc8

The ID of the cluster to which the ECS instance to be imported belongs.

instanceIds String Yes i-2ze7s2v0b789k60p****

The InstanceID of the ECS host to be imported. Separate multiple ECS instances (English format) with commas (,).

password String Yes ********

The password of the ECS instance to be imported. You can use the password that you set when purchasing the ECS instance.

Response parameters

Parameter Type Example Description
Code Integer 200

The status code returned by the API.

Data String Transform submit success!

The data returned by the API.

Message String success

The response sent by the request interface.

RequestId String 4823-bhjf-23u4-eiufh

Request ID

Examples

Sample requests

POST /pop/v5/resource/cluster_member HTTP/1.1
Common request header
{
  "clusterId": "b3e3f77b-462e-****-****-bec8727a4dc8"
  "instanceIds": "i-2ze7s2v0b789k60p****"
  "password": "********"
}

Sample success responses

XML format

<Data>Transform submit success! </Data>
<Message>success</Message>
<Code>200</Code>

JSON format

{
    "Data": "Transform submit success! ",
    "Message": "success",
    "Code": 200
}

Error codes

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