Enables or disables Simple Log Service for WAF.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyUserWafLogStatus |
update |
*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-cn-mp9153**** |
| LogStatus |
integer |
Yes |
The enabling status of Simple Log Service. Valid values:
|
1 |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfm***q |
| LogRegionId |
string |
No |
The ID of the log storage region. If this parameter is not specified, Simple Log Service is enabled in the region where the WAF instance resides.
Note
Call DescribeUserSlsLogRegions to query the available log storage regions. |
cn-beijing |
| RegionId |
string |
No |
The region where the WAF instance resides. Valid values:
|
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D7861F61-5B61-****-A47C-6B19160***** |
| LogStoreName |
string |
The name of the Logstore in Simple Log Service (SLS). |
wafng-logstore |
| ProjectName |
boolean |
The name of the project in Simple Log Service. |
wafng-project-14316572********-cn-hangzhou |
Examples
Success response
JSON format
{
"RequestId": "D7861F61-5B61-****-A47C-6B19160*****",
"LogStoreName": "wafng-logstore",
"ProjectName": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.