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.

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.
RegionId String No cn-hangzhou

The region ID of the 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:

Regions inside China:

  • 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-XINJIANG: Xinjiang
  • 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 S.A.R
  • CN-GANSU: Gansu
  • CN-FUJIAN: Fujian
  • CN-TIBET: Xizang
  • CN-GUIZHOU: Guizhou
  • CN-LIAONING: Liaoning
  • CN-CHONGQING: Chongqing
  • CN-QINGHAI: Qinghai
  • CN-HONGKONG: Hong Kong S.A.R
  • CN-HEILONGJIANG: Heilongjiang

Regions outside China:

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

Response parameters

Parameter Type Example Description
RequestId String 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc" }

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

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

Error codes

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