Moves a Virtual Private Cloud (VPC) peering connection from one resource group to another.
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 | pcc-gu32s92f9ytsk9**** | The ID of the VPC peering connection. |
ResourceType | String | Yes | PeerConnection | The resource type. Set the value to PeerConnection, which specifies a VPC peering connection. |
NewResourceGroupId | String | Yes | rg-acfm3peow3k**** | The ID of the new resource group. 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 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 request ID. |
Success | Boolean | true | Indicates whether the operation is successful. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=MoveResourceGroup
&ResourceId=pcc-gu32s92f9ytsk9****
&ResourceType=PeerConnection
&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>
<Success>true</Success>
</MoveResourceGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F",
"Success" : true
}
Error codes
For a list of error codes, see Service error codes.