Moves a resource to a new resource group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes MoveResourceGroup

The operation that you want to perform. Set the value to MoveResourceGroup.

ClusterId String Yes cds-k6g0e3l9h****

The ID of the cluster.

NewResourceGroupId String Yes rg-a4f9jl8u4e****

The ID of the new resource group. You can view the available resource groups in the Resource Management console.

Response parameters

Parameter Type Example Description
RequestId String FF520A14-0247-47C2-B5CA-7E01D34E9C8A

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=MoveResourceGroup
&ClusterId=cds-k6g0e3l9h****
&NewResourceGroupId=rg-a4f9jl8u4e****
&<Common request parameters>

Sample success responses

XML format

<RequestId>FF520A14-0247-47C2-B5CA-7E01D34E9C8A</RequestId>

JSON format

{"RequestId":"FF520A14-0247-47C2-B5CA-7E01D34E9C8A"}

Error codes

For a list of error codes, visit the API Error Center.