Moves a resource to a different resource group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | MoveResourceGroup | The operation that you want to perform. Set the value to MoveResourceGroup. |
ResourceId | String | Yes | vpc-hp31psbg8ec3023s6**** | The ID of the instance that you want to move. |
ResourceType | String | Yes | vpc | The type of the resource. Valid values:
|
NewResourceGroupId | String | Yes | rg-acfm3peow3k**** | The ID of the resource group to which the cloud resource is to be moved. Note You can use resource groups to manage resources owned by your Alibaba Cloud account. Resource groups simplify the resource and permission management of your Alibaba Cloud account. For more information, see What is resource management?. |
RegionId | String | Yes | cn-hangzhou | The ID of the region to which the cloud resource belongs. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=MoveResourceGroup
&ResourceId=vpc-hp31psbg8ec3023s6****
&ResourceType=vpc
&NewResourceGroupId=rg-acfm3peow3k****
&RegionId=cn-hangzhou
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<MoveResourceGroupResponse>
<RequestId>611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F</RequestId>
</MoveResourceGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | The error message returned because the specified resource group ID is invalid. |
400 | InvalidResourceId.NotFound | The specified ResourceId does not exist. | The error message returned because the specified resource ID does not exist. |
404 | InvalidBandwidthPackageId.NotFound | The specified bandwidthPackage resourceId does not exist in our records. | The error message returned because the specified EIP bandwidth plan does not exist. |
For a list of error codes, visit the Error Center.