You can call this operation to migrate Elastic Compute Units (ECUs) to a region.
Debugging
Request headers
This operation only uses common request headers. For more information, see the Common request parameters topic.
Request syntax
POST /pop/v5/resource/migrate_ecu HTTPS|HTTP
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
InstanceIds | String | Yes | i-2zej4i2jdf3ntwhj**** |
A set of Elastic Compute Service (ECS) instance IDs corresponding to the ECUs that you want to migrate. The IDs are separated by commas (,). |
LogicalRegionId | String | No | test_region |
The ID of the logical region to which you want to migrate the ECUs. The value set for this parameter will replace the value of regionId. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The returned code. |
Message | String | success |
The returned message. |
Data | String | success |
The data returned, which indicates whether the operation is successful. The value success indicates that the operation is successful. |
RequestId | String | b197-40ab-9155-7ca7 |
Examples
Sample requests
POST /pop/v5/resource/migrate_ecu HTTP/1.1
Common request headers
{
"InstanceIds": ""
}
Sample success responses
JSON
format
{
"Data": true,
"Message": "success",
"Code": 200
}
XML
format
<Data>true</Data>
<Message>success</Message>
<Code>200</Code>
Error codes
For a list of error codes, visit the API Error Center.