Generates the import command for a non-Alibaba Cloud ECS cluster.
Operation description
Steps to import non-Alibaba Cloud ECS instances into a non-Alibaba Cloud ECS cluster
First, call the CreateIDCImportCommand operation to generate the import command for the non-Alibaba Cloud ECS cluster. Then, run the import command on the non-Alibaba Cloud instance to import the instance into the non-Alibaba Cloud ECS 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 ID of the destination cluster. You can call the ListCluster operation to obtain the cluster ID. |
7246cxxx-53xx-xxxx-xxxx-xxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. |
200 |
| Message |
string |
The returned message. |
success |
| Data |
string |
The 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. | An unknown error occurred. Retry the operation. If the error persists, submit a ticket. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.