Migrates instances to a specified resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:MigrateResourceInstance |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v2/resources/{ClusterId}/{ResourceId}/instances/migrate HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the cluster where the resource group is located. |
cn-shanghai |
| ResourceId |
string |
Yes |
The ID of the resource group. |
eas-r-asdasdasd**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| InstanceIds |
array |
Yes |
The IDs of the instances. |
|
|
string |
No |
The ID of the instance. |
['eas-i-4ybm1bin7gygx67umh', 'eas-i-iy6dfaag7qals6g4i2'] |
|
| DestResourceId |
string |
Yes |
The ID of the destination resource group. |
eas-r-asdasdasd**** |
| MigrateToHybrid |
boolean |
No |
Specifies whether to migrate the instances to a general computing resource group. If set to true, specify the ID of the general computing resource group. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
40325405-579C-4D82*** |
| Message |
string |
The message returned for the request. |
Success |
| InstanceIds |
array |
The IDs of the instances. |
|
|
string |
The ID of the instance. |
['eas-i-1l3saj0kfhz5lp6p5m', 'eas-i-hgjztp6rsw5pmyko9n'] |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82***",
"Message": "Success",
"InstanceIds": [
"['eas-i-1l3saj0kfhz5lp6p5m', 'eas-i-hgjztp6rsw5pmyko9n']"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.