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.

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/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/install.sh http://edas-hz.oss-cn-hangzhou-internal.aliyuncs.com/install.sh && sh /root/install.sh -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.

Examples

Sample requests

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

Sample success responses

XML format

<RequestId>b197-40ab-9155-7ca7</RequestId>
<Message>success</Message>
<Data>wget -q -O /root/install.sh http://edas-hz.oss-cn-hangzhou-internal.aliyuncs.com/install.sh &amp;&amp; sh /root/install.sh -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx</Data>
<Code>200</Code>

JSON format

{
    "RequestId":"b197-40ab-9155-7ca7",
    "Message":"success",
    "Data":"wget -q -O /root/install.sh http://edas-hz.oss-cn-hangzhou-internal.aliyuncs.com/install.sh && sh /root/install.sh -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx",
    "Code":"200"
}

Error codes

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