Transfers WAF resources to another resource group.

Description

Web Application Firewall (WAF) resources are the domain names that are added to WAF. You can sort the resources that belong to your Alibaba Cloud account into various resource groups. This facilitates resource management among multiple projects or applications within your Alibaba Cloud account and simplifies permission management. By default, domain name resources that are added to WAF belong to the default resource group. To manage your resources, you can transfer the domain name resources to your custom resource group.

You can create a resource group in the Resource Management console. For more information, see Create a resource group. You can also create a resource group by calling the API of Resource Management. For more information, see CreateResourceGroup.

For more information about resource groups, see Resource management.

QPS limit

This operation does not have a queries per second (QPS) limit on a single user. You can call this operation based on your business requirements.

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.

ResourceType String Yes domain

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

ResourceId String Yes waf-cn-09k1rd5****~www.example.com

The ID of the WAF resource that you want to use.

After you add a domain name to WAF, the domain name indicates a WAF resource. A unique resource ID (ResourceId) is used in Resource Management to identify a WAF resource. The ID of a WAF resource is in the format of <InstanceId>~<Domain>. The following list describes the format:

  • <InstanceId> specifies the ID of the WAF instance. You can call the DescribeInstanceInfo operation to query the ID of the WAF instance.
  • <Domain> specifies the domain name that is added to WAF. You can call the DescribeDomainList operation to query all domain names that are added to WAF.
  • You can use a tilde (~) to connect <InstanceId> and <Domain>. This specifies the ID of the WAF domain name resource.
ResourceGroupId String Yes rg-atstuj3rtop****

The ID of the resource group to which you want to transfer the domain name.

After you create a resource group by using Resource Management, Resource Management generates an ID for the resource group (ResourceGroupId).

On the Resource Group page of the Resource Management console, you can query the IDs of all resource groups. You can also call the ListResourceGroups operation to query the IDs of all resource groups.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

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

The ID of the request. You can use the ID to locate and troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=MoveResourceGroup
&RegionId=cn-hangzhou
&ResourceType=domain
&ResourceId=waf-cn-09k1rd5****~www.example.com
&ResourceGroupId=rg-atstuj3rtop****
&<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.