Updated on 2022-08-09 GMT+08:00

Querying Features Available in a Site

Function

This API is used to query features available for a certain site.

URI

GET /v1/{project_id}/waf/config/console

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header).

Content-Type

Yes

String

Content type

Default: application/json;charset=utf8

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

eps

Boolean

Support for EPS

tls

Boolean

Support for TLS

ipv6

Boolean

Support for IPv6

alert

Boolean

Support for alarms

custom

Boolean

Support for precise protection

elb_mode

Boolean

Support for load-balancing WAF instances

event_lts

Boolean

Support for LTS for WAF logging

multi_dns

Boolean

Support for multi-DNS resolution

search_ip

Boolean

Support for searching for IP addresses

cc_enhance

Boolean

Support for CC attack protection enhancement

cname_switch

Boolean

Support for CNAME record switchover

custom_block

Boolean

Support for precise block

advanced_ignore

Boolean

Support for false alarm masking

js_crawler_enable

Boolean

Support for JavaScript anti-crawler

deep_decode_enable

Boolean

Support for in-depth parsing

overview_bandwidth

Boolean

Support for bandwidth statistics

proxy_use_oldcname

Boolean

Support for DNS resolution with the old CNAME record

check_all_headers_enable

Boolean

Support for inspection of all headers

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code

error_msg

String

Error code message

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code

error_msg

String

Error code message

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code

error_msg

String

Error code message

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

OK

400

Request failed.

401

The token does not have required permissions.

500

Internal server error.

Error Codes

See Error Codes.