Queries the details of a protection policy.
Operation description
Note
You can call this operation up to 20 times per second per account.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PolicyId | long | Yes | The ID of the protection policy. You can specify only one ID in each request. | 1000001 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "66A98669-CC6E-4F3E-80A6-3014697B11AE",
"Policy": {
"PolicyStatus": "on",
"DefenseScene": "waf_group",
"DomainCount": 22,
"RuleConfigs": "{ \"type\":\"target_type\", \"status\":\"on\", \"config\":{\"target\":\"app\"}, \"action\":\"\" }",
"PolicyName": "policy_test",
"PolicyId": 100001,
"RuleCount": 9,
"GmtModified": "2021-12-29T17:08:45Z",
"PolicyType": "default"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter | The specified parameter is invalid. | A parameter is set to an invalid value. |
For a list of error codes, visit the Service error codes.