Querying a Policy
Function Description
This API is used to query details about a policy.
URI
Request
Request parameters
None
Response
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the instance ID. |
name |
String |
Specifies the policy name. |
action |
Specifies the protective action after a rule is matched.
|
|
options |
Specifies the protection switches. |
|
level |
Integer |
Specifies the protection level.
|
full_detection |
Boolean |
Specifies the detection mode in Precise Protection.
|
hosts |
Array |
Specifies the domain IDs. |
timestamp |
Long |
Specifies the time when a policy is created. |
Parameter |
Type |
Description |
---|---|---|
category |
String |
Specifies the protective action.
|
Parameter |
Type |
Description |
---|---|---|
webattack |
Boolean |
Specifies whether Basic Web Protection is enabled.
|
common |
Boolean |
Specifies whether General Check in Basic Web Protection is enabled.
|
crawler |
Boolean |
Specifies whether the master crawler detection switch in Basic Web Protection is enabled.
|
crawler_engine |
Boolean |
Specifies whether the Search Engine switch in Basic Web Protection is enabled.
|
crawler_scanner |
Boolean |
Specifies whether the Scanner switch in Basic Web Protection is enabled.
|
crawler_script |
Boolean |
Specifies whether the Script Tool switch in Basic Web Protection is enabled.
|
crawler_other |
Boolean |
Specifies whether detection of other crawlers in Basic Web Protection is enabled.
|
webshell |
Boolean |
Specifies whether webshell detection in Basic Web Protection is enabled.
|
cc |
Boolean |
Specifies whether CC Attack Protection is enabled.
|
custom |
Boolean |
Specifies whether Precise Protection is enabled.
|
whiteblackip |
Boolean |
Specifies whether Blacklist and Whitelist is enabled.
|
privacy |
Boolean |
Specifies whether Data Masking is enabled.
|
Ignore |
Boolean |
Specifies whether False Alarm Masking is enabled.
|
antitamper |
Boolean |
Specifies whether Web Tamper Protection is enabled.
|
Example
A policy named policy_2 is used as an example.
{ "id": "xxxxxxxxxxxxxxxxxxxxxxxxx", "name": "policy_2", "action": { "category": "block" }, "options": { "webattack": true, "common": true, "crawler": true, "crawler_engine": true, "crawler_scanner": true, "crawler_script": true, "crawler_other": true, "webshell": true, "cc": true, "custom": true, "whiteblackip": true, "ignore": true, "privacy": true, "antitamper": true }, "level": 1, "full_detection": false, "hosts": ["11111111111111111", "2222222222222222222"], "timestamp": 1499817612 }
Status Code
For details about error status codes, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot