All Products
Search
Document Center

Anti-DDoS:ConfigNetworkRegionBlock

Last Updated:Feb 25, 2026

Configures blocked locations for an Anti-DDoS Proxy instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the instance.

Note

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

ddoscoo-cn-mp91j1ao****

Config

string

Yes

The details of the configurations of blocked locations. This parameter is a JSON string. The value consists of the following fields:

  • RegionBlockSwitch: the status of the location blacklist feature. This field is required and must be of the string type. Valid values:

    • on

    • off

  • Countries: the codes of the countries and areas from which you want to block requests. This field is optional and must be of the array type.

    **

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

  • Provinces: the codes of the administrative regions in China from which you want to block requests. This field is optional and must be of the array type.

    **

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

    For example, [11,12] specifies Beijing and Tianjin.

{"RegionBlockSwitch":"on","Countries":[],"Provinces":[11,12,13,14,15,21,22,23,31,32,33,34,35,36,37,41,42,43,44,45,46,50,51,52,53,54,61,62,63,64,65,71,81,82]}

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 elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

Examples

Success response

JSON format

{
  "RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.