Imports or migrates one or more Elastic Compute Service (ECS) instances to a cluster.

Limits

When you call this operation to import an ECS instance, the operating system of the ECS instance will be reinstalled. After the operating system is reinstalled, all data on the ECS instance will be deleted and you must set a logon password for the ECS instance again. Make sure that no important data exists or data has been backed up on the ECS instance that you want to import.

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 headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

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

Request parameters

Parameter Type Required Example Description
InstanceIds String Yes i-2ze7s2v0b789k60p****

The ID of the instance that you want to import or migrate. Separate multiple IDs with comma (,).

  • An instance may not belong to a cluster, but an instance can belong to only one cluster at most.
  • The ECS instances and the destination cluster must be in the same virtual private cloud (VPC).
Password String Yes Hello****

The new logon password of the instance that you want to import or migrate to the destination cluster.

TargetClusterId String Yes b3e3f77b-462e-****-****-bec8727a****

The ID of the destination cluster.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Data String Transform submit success!

Transform submit success! is returned if the request is successful.

Message String success

The returned message.

RequestId String b197-40ab-9155-****

The ID of the request.

Examples

Sample requests

POST /pop/v5/resource/transform_cluster_member HTTP/1.1
Common request header
{
"InstanceIds": "i-2ze7s2v0b789k60p****",
"Password": "H****",
"TargetClusterId": "b3e3f77b-462e-****-****-bec8727a****"
}

Sample success responses

XML format

<TransformClusterMemberResponse>
  <Message>success</Message>
  <RequestId>b197-40ab-9155-****</RequestId>
  <Data>Transform submit success!</Data>
  <Code>200</Code>
</TransformClusterMemberResponse>

JSON format

{
    "Message": "success",
    "RequestId": "b197-40ab-9155-****",
    "Data": "Transform submit success!",
    "Code": 200
}

Error codes

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