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. |
ResourceType | String | Yes | ACL |
The type of the resource. Valid values:
|
ResourceId | String | Yes | acl-hp34s2h0xx1ht4nwo**** |
The ID of the cloud resource that you want to move. |
NewResourceGroupId | String | Yes | rg-9gLOoK**** |
The ID of the resource group to which the cloud resource is to be moved. Note You can use resource groups to classify cloud resources that belong to your Apsara
Stack tenant account to facilitate resource management and permission control. For
more information, see What is resource management?.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=MoveResourceGroup
&ResourceType=ACL
&ResourceId=acl-hp34s2h0xx1ht4nwo****
&NewResourceGroupId=rg-9gLOoK****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<MoveResourceGroupResponse>
<RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>
</MoveResourceGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3"
}
Error codes
For a list of error codes, visit the API Error Center.