Modifies the log status of 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 |
Instance ID of the WAF instance. Note
You can call the DescribeInstance operation to query instance ID of the WAF instance. |
waf-cn-zz11zcl**** |
| Resource |
string |
Yes |
The protected object to modify. |
alb-wewbb23dfsetetcic1242-0**** |
| Status |
boolean |
Yes |
The log enabling status of the protected object. Valid values:
|
true |
| RegionId |
string |
No |
The region where the WAF instance resides. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-acfm***q |
| TraceStatus |
boolean |
No |
The Tracing Analysis status. Valid values:
Note
To enable Tracing Analysis, you must first enable the log status Status for the protected object. |
true |
| TraceConfig |
object |
No |
The Tracing Analysis configuration. |
{"Workspace":"cms-test","RatePerMille":90} |
| Workspace |
string |
No |
The Hybrid Cloud Monitoring 2.0 workspace. |
cms-test |
| RatePerMille |
integer |
No |
The per-mille sampling rate for Tracing Analysis. |
90 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Status |
boolean |
The log enabling status of the protected object. Valid values:
|
true |
| RequestId |
string |
The request ID. |
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.