You can call the MoveResourceGroup operation to move a resource to a different resource group.
Operation description
Conditions
This operation can be used to change the resource group of only zone-specific resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:MoveResourceGroup |
*Zone
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en. |
en |
| ResourceId |
string |
Yes |
The unique ID of the zone. |
df2d03865266bd9842306db586d4**** |
| NewResourceGroupId |
string |
Yes |
The ID of the destination resource group. |
rg-aekz2qj7awz**** |
| ClientToken |
string |
No |
A client token that ensures the idempotence of the request. Generate a unique value on your client. The token must contain only ASCII characters and be no more than 64 characters in length. |
21079fa016944979537637959d09bc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
D1324D48-1E23-4AEF-9EDE-466120561C6F |
Examples
Success response
JSON format
{
"RequestId": "D1324D48-1E23-4AEF-9EDE-466120561C6F"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.