Queries the information about match conditions in a custom protection rule, such as the match fields, logical characters, and match content.
Operation description
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 |
---|---|---|---|---|
DefenseScenes | string | No | The type of the protection policy. Separate multiple types with commas (,). Valid values:
Note
If you do not specify this parameter, all types are returned.
| custom_acl |
Language | string | Yes | The language of the returned information. Valid values:
| cn |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "153ca2cd-3c01-44be-204c-64dbc6c88630",
"Content": [
{
"DefenseScene": "custom_acl",
"Fields": [
{
"ExtendField": "Custom Header\n",
"MatchField": "Header",
"LogicalSymbol": [
{
"Type": "multi",
"Symbol": "match-one",
"Tip": "You can enter up to 50 tips. Press the Enter key.\n",
"Attributes": 1,
"MaxLength": 50,
"Description": "Equal to one of multiple values.\n",
"Regexp": {
"Pattern": "^\\S+$",
"ErrMsg": "Specify this field.\n"
}
}
]
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-11-21 | The response structure of the API has changed | View Change Details |