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 automatically 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.

Domain String Yes

The domain name.

Note A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names.
RegionId String No cn-hangzhou

The region ID of the Anti-DDos Pro or Anti-DDos Premium instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance
ResourceGroupId String No default

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.

Regions.N RepeatList No CN-SHANGHAI

The name of region N to block. If you do not specify this parameter, the Blocked Regions (Domain Names) policy is disabled. Valid values:


  • CN-SHANGHAI: Shanghai
  • CN-YUNNAN: Yunnan
  • CN-BEIJING: Beijing
  • CN-TAIWAN: Taiwan
  • CN-JILIN: Jilin
  • CN-SICHUAN: Sichuan
  • CN-TIANJIN: Tianjin
  • CN-NINGXIA: Ningxia
  • CN-ANHUI: Anhui
  • CN-SHANDONG: Shandong
  • CN-SHAANXI: Shaanxi
  • CN-SHANXI: Shanxi
  • CN-GUANGDONG: Guangdong
  • CN-GUANGXI: Guangxi
  • CN-JIANGSU: Jiangsu
  • CN-JIANGXI: Jiangxi
  • CN-HEBEI: Hebei
  • CN-HENAN: Henan
  • CN-ZHEJIANG: Zhejiang
  • CN-HAINAN: Hainan
  • CN-HUBEI: Hubei
  • CN-HUNAN: Hunan
  • CN-MACAU: Macao
  • CN-GANSU: Gansu
  • CN-FUJIAN: Fujian
  • CN-GUIZHOU: Guizhou
  • CN-LIAONING: Liaoning
  • CN-CHONGQING: Chongqing
  • CN-QINGHAI: Qinghai
  • CN-HONGKONG: Hong Kong
  • CN-HEILONGJIANG: Heilongjiang

Outside China

  • OVERSEAS-ASIA: Asia (except China)
  • OVERSEAS-NAMERICA: North America
  • OVERSEAS-SAMERICA: South America

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 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc

The ID of the request.


Sample request

http(s)://[Endpoint]/? Action=ModifyWebAreaBlock

Sample success responses

XML format

<ModifyWebAreaBlockResponse>         <RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId> </ModifyWebAreaBlockResponse>

JSON format

{     "RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc" }

Error codes

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