Generates a command that is used to import instances to a hybrid cloud Elastic Compute Service (ECS) cluster.
Operation description
Description
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 this command on the instances to import the instances to the cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageCluster |
create |
*Cluster
|
None | None |
Request syntax
POST /pop/v5/create_idc_import_command HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. You can call the ListCluster operation to query the cluster ID. For more information, see ListCluster. |
7246cxxx-53xx-xxxx-xxxx-xxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The HTTP status code. |
200 |
| Message |
string |
The returned message. |
success |
| Data |
string |
The generated import command. |
wget -q -O /tmp/install.sh http://edas-hz.oss-cn-hangzhou-internal.aliyuncs.com/install.sh && sh /tmp/install.sh -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx |
| RequestId |
string |
The request ID. |
b197-40ab-9155-7ca7 |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "success",
"Data": "wget -q -O /tmp/install.sh http://edas-hz.oss-cn-hangzhou-internal.aliyuncs.com/install.sh && sh /tmp/install.sh -idcToken xxxx-xxxxx-xxxxx-xxxxxxx -edasId xxxxxxxxxxxxxx",
"RequestId": "b197-40ab-9155-7ca7"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | UnknownError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.