Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
10 KiB
Querying a Web Tamper Protection Rule
Function Description
This API is used to query details about a web tamper protection rule.
URI
- URI format
GET /v1/{project_id}/waf/policy/{policy_id}/antitamper/{antitamper_rule_id}
- Parameter description
Table 1 Path parameters Parameter
Mandatory
Type
Description
project_id
Yes
String
Specifies the project ID.
policy_id
Yes
String
Specifies the policy ID.
antitamper_rule_id
Yes
String
Specifies the ID of a web tamper protection rule.
Request
Request parameters
None
Response
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ID of a web tamper protection rule. |
policy_id |
String |
Specifies the policy ID. |
hostname |
String |
Specifies the domain name. |
path |
String |
Specifies the URL protected by the web tamper protection rule, excluding a domain name. |
timestamp |
Long |
Specifies the time when the cache is refreshed. |
Example
Rule ID 3a9b5c0f96784ec8abd8ba61a98064ef is used as an example.
{ "id": "3a9b5c0f96784ec8abd8ba61a98064ef", "policy_id": "yuc0e55865544d1f8c95cf71df108c6b", "hostname": "www.aaa.com", "path": "/a", "timestamp": 1499817600 }
Status Code
For details about error status codes, see Status Codes.