forked from docs/doc-exports
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>
12 KiB
12 KiB
Adding a Web Tamper Protection Rule
Function Description
This API is used to add a web tamper protection rule.
URI
Request
Request parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
hostname |
Yes |
String |
Specifies the domain name. |
path |
Yes |
String |
Specifies the URL protected by the web tamper protection rule, excluding a domain name. |
Response
Response parameters
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. |
Examples
Domain name www.abc.com is used as an example.
- Request example
{ "hostname": "www.abc.com", "path": "/a" }
- Response example
{ "id": "3a9b5c0f96784ec8abd8ba61a98064ef", "policy_id": "yuc0e55865544d1f8c95cf71df108c6b", "hostname": "www.abc.com", "path": "/a", "timestamp": 1499817600 }
Status Code
Table 4 describes the normal status code returned by the API.
For details about error status codes, see Status Codes.
Parent topic: Web Tamper Protection Rules