Generates a command that is used to import instances to a hybrid cloud Elastic Compute Service (ECS) cluster.

Usage notes

You must call the CreateIDCImportCommand operation first to generate a command used to import hybrid cloud ECS instances to a hybrid cloud ECS cluster. Then, run the command on the instances to import the instances to the cluster.


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/create_idc_import_command HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
ClusterId String Yes 7246cxxx-53xx-xxxx-xxxx-xxxxxxxx

The ID of the cluster. You can call the ListCluster operation to query the cluster ID. For more information, see ListCluster.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Data String wget -q -O /root/ && sh /root/ -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx

The generated import command.

Message String success

The returned message.

RequestId String b197-40ab-9155-7ca7

The ID of the request.


Sample requests

POST /pop/v5/create_idc_import_command HTTP/1.1
Common request header
"ClusterId": ""

Sample success responses

XML format

<Data>wget -q -O /root/ &amp;&amp; sh /root/ -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx</Data>

JSON format

    "Data":"wget -q -O /root/ && sh /root/ -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx",

Error codes

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