Help Center/ Anti-DDoS Service/ API Reference/ AAD APIs/ AAD Protection Policies/ Querying a Blacklist or Whitelist Rule in a Web CC Protection Policy
Updated on 2026-01-06 GMT+08:00

Querying a Blacklist or Whitelist Rule in a Web CC Protection Policy

Function

This API is used to query blacklist and whitelist rules in a web CC protection policy.

Calling Method

For details, see Calling APIs.

URI

GET /v2/aad/policies/waf/blackwhite-list

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

total

Integer

total

black

Array of BlackWhiteListRule objects

black

white

Array of BlackWhiteListRule objects

white

Table 4 BlackWhiteListRule

Parameter

Type

Description

id

String

id

type

Integer

0: blacklist, 1: whitelist

ip

String

ip

domain_id

String

Domain name ID.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.