Help Center/ Anti-DDoS Service/ API Reference/ AAD APIs/ AAD Protection Policies/ Querying Web Protection Policy Configuration
Updated on 2026-01-06 GMT+08:00

Querying Web Protection Policy Configuration

Function

This API is used to query web protection policy configurations.

Calling Method

For details, see Calling APIs.

URI

GET /v2/aad/policies/waf

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

domain_name

Yes

String

Domain name

overseas_type

Yes

Integer

Protection region. 0: regions in the Chinese mainland. 1: regions outside the Chinese mainland.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

token

Content-Type

Yes

String

Content-Type

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

domain_name

String

Domain name (including the port).

overseas_type

Integer

0: the Chinese mainland. 1: outside the Chinese mainland

options

WafPolicyOptions object

Protection settings. You can set the fields you want to modify.

level

Integer

Intelligent CC attack protection level. 0: loose. 1: normal. 2: tight.

mode

Integer

Intelligent CC attack protection mode. 0: warning. 1: protection.

Table 4 WafPolicyOptions

Parameter

Type

Description

cc

Boolean

Whether to enable CC attack protection (frequency control).

custom

Boolean

Whether to enable precise access protection.

geoip

Boolean

Whether to enable geolocation access control.

whiteblackip

Boolean

Whether to enable blacklist and whitelist protection.

modulex_enabled

Boolean

Whether to enable intelligent CC attack protection.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.