Enables or disables the log collection feature for a protected object.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyResourceLogStatus |
update |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call the DescribeInstance operation to query the ID of the WAF instance. |
waf-cn-zz11zcl**** |
| Resource |
string |
Yes |
The protected object on which you want to manage the log collection feature. |
alb-wewbb23dfsetetcic1242-0**** |
| Status |
boolean |
Yes |
Specifies whether to enable the log collection feature for the protected object. Valid values:
|
true |
| RegionId |
string |
No |
The region of the WAF instance. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-acfm***q |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The result of the request. |
||
| Status |
boolean |
Indicates whether the log collection feature is enabled for the protected object. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
7C55A3E5-638A-5D6E-9A2F-C3CE5A677EC5 |
Examples
Success response
JSON format
{
"Status": true,
"RequestId": "7C55A3E5-638A-5D6E-9A2F-C3CE5A677EC5"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.