Adds resources 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.

RegionId String Yes cn-hangzhou

The region in which a WAF instance resides.

Valid values:

  • cn-hangzhou: mainland China
  • ap-southeast-1: outside mainland China
ResourceGroupId String Yes rg-atstuj3rtop****

The ID of the resource group to which the WAF instance belongs in Resource Management.

ResourceId String Yes waf-****~test-domain.aliyun.com

The ID of the WAF resource.

ResourceType String Yes domain

The type of the WAF resource.

Set the value to domain, which indicates that the resource type of WAF can only be the domain name.

Response parameters

Parameter Type Example Description
RequestId String C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request, which is used to locate and troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=MoveResourceGroup
&RegionId=cn-hangzhou
&ResourceGroupId=rg-atstuj3rtop****
&ResourceId=waf-****~test-domain.aliyun.com
&ResourceType=domain
&<Common request parameters>

Sample success responses

XML format

<MoveResourceGroupResponse>
  <RequestId>C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E</RequestId>
</MoveResourceGroupResponse>

JSON format

{
    "RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
}

Error codes

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