Modifies the subscription status of API security logs.
Operation description
Before you invoke this operation, make sure that you have created an API security log delivery configuration by invoking the ModifyApisecLogDelivery operation. If you have not created a delivery configuration, complete the following prerequisites:
Confirm that the API security feature is enabled. Invoke the DescribeInstance operation to query the instance details. If the Details.AgenticApisec or Details.Apisec parameter in the response is true, the API security feature is enabled.
Confirm that WAF is authorized to access cloud resources. Invoke the DescribeRoleAuthStatus operation to query the authorization status. If WAF is not authorized, invoke the InitializeWafOperationRole operation to grant the authorization.
Invoke the DescribeApisecSlsProjects and DescribeApisecSlsLogStores operations to query active SLS projects and Logstores, and then invoke the ModifyApisecLogDelivery operation to create a delivery configuration.
After you complete the preceding steps, invoke this operation to enable or disable the delivery status of API security logs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyApisecLogDeliveryStatus |
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_v3_public_cn-uqm2z****0a |
| AssertKey |
string |
Yes |
The log subscription type. Valid values:
|
risk |
| Status |
boolean |
Yes |
The enabling status of API security log subscribe. 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 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
F35F45B0-5D6B-4238-BE02-A62D****E840 |
Examples
Success response
JSON format
{
"RequestId": "F35F45B0-5D6B-4238-BE02-A62D****E840"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.