Modifies the blocked regions that are configured in the Blocked Regions (Domain Names) policy for a website.


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 ModifyWebAreaBlock

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

RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance. This is the default value.
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance.
ResourceGroupId String No rg-acfm2pz25js****

The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.

For more information about resource groups, see Create a resource group.

Domain String Yes

The domain name of the website.

Note A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names.
Regions.N String No CN-310000

The code of region N to block. You can block requests from administrative regions in China or from countries and areas. For example, CN-310000 indicates Shanghai, and OVERSEAS-US indicates the United States. If you do not specify this parameter, the Blocked Regions (Domain Names) policy is disabled.

Note For more information, see Location parameters.

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 5AA2BD65-E289-4E91-9DD9-3E1FB2140D17

The ID of the request.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "5AA2BD65-E289-4E91-9DD9-3E1FB2140D17"

Error codes

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