Describes the default log field configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeUserLogFieldConfig |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call DescribeInstance to query the ID of the WAF instance. |
waf_v3prepaid_public_cn-0***** |
| DeliveryType |
string |
No |
The log delivery type. Valid value:
|
sls |
| RegionId |
string |
No |
The region ID of the WAF instance. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aek24****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AddList |
string |
The additional log fields. The fields are specified in the `a,b,c,...` format. |
acl_action,acl_rule_id |
| RequestId |
string |
The ID of the request. |
653778B4-4D47-5223-855B-4E****** |
| LogDeliveryStrategy |
string |
The log delivery policies. Multiple policies are supported. The value is a string that is converted from a JSON array of parameters. Note
For more information, see the LogDeliveryStrategy parameter description in ModifyUserLogFieldConfig. |
[{\"logType\":\"blockLog\",\"rate\":100},{\"logType\":\"normalRequestLog\",\"rate\":100},{\"logType\":\"checkLog\",\"rate\":100}] |
| ExtendConfig |
string |
The extended configuration for log delivery. The value is a string that is converted from a JSON object of parameters. Note
For more information, see the ExtendConfig parameter description in ModifyUserLogFieldConfig. |
{\"request_header\":\"Ali-Cdn-Real-Ip\"} |
| ConfigStatus |
string |
The status of the log field configuration. Valid values:
|
success_finished |
| DelList |
string |
The default log fields that are removed from the configuration. The fields are specified in the `a,b,c,...` format. |
waf_rule_id,waf_rule_type |
| FieldList |
string |
The log fields that are delivered. The fields are specified in the `a,b,c,...` format. |
account,acl_action,acl_rule_id,acl_rule_type |
| DeliveryType |
string |
The log delivery type. Valid value:
|
sls |
Examples
Success response
JSON format
{
"AddList": "acl_action,acl_rule_id",
"RequestId": "653778B4-4D47-5223-855B-4E******",
"LogDeliveryStrategy": "[{\\\"logType\\\":\\\"blockLog\\\",\\\"rate\\\":100},{\\\"logType\\\":\\\"normalRequestLog\\\",\\\"rate\\\":100},{\\\"logType\\\":\\\"checkLog\\\",\\\"rate\\\":100}]",
"ExtendConfig": "{\\\"request_header\\\":\\\"Ali-Cdn-Real-Ip\\\"}",
"ConfigStatus": "success_finished",
"DelList": "waf_rule_id,waf_rule_type",
"FieldList": "account,acl_action,acl_rule_id,acl_rule_type",
"DeliveryType": "sls"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.