Queries the blocked regions that are configured for an Anti-DDoS Pro or Anti-DDoS Premium instance.

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 DescribeNetworkRegionBlock

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

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.
InstanceId String Yes ddoscoo-cn-mp91j1ao****

The ID of the instance.

Note You can call the DescribeInstanceIds operation to query the IDs of all instances.

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.

Config Object

The configuration of blocked regions.

RegionBlockSwitch String on

The status of the Blocked Regions policy. Valid values:

  • on
  • off
Provinces Array of String 11

The code of the administrative region in China from which the requests are blocked. For example, 11 indicates Beijing, and 12 indicates Tianjin.

Note For more information about the codes of administrative regions in China, see Location parameters.
Countries Array of String 2

The code of the country or area from which the requests are blocked. For example, 2 indicates Australia.

Note For more information about the codes of countries and areas, see Location parameters.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeNetworkRegionBlock
&InstanceId=ddoscoo-cn-mp91j1ao****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeNetworkRegionBlockResponse>
    <RequestId>C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E</RequestId>
    <Config>
        <RegionBlockSwitch>on</RegionBlockSwitch>
        <Provinces>11</Provinces>
        <Countries>2</Countries>
    </Config>
</DescribeNetworkRegionBlockResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E",
  "Config" : {
    "RegionBlockSwitch" : "on",
    "Provinces" : [ "11" ],
    "Countries" : [ "2" ]
  }
}

Error codes

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