Modifies the status of protected objects or protected object groups for the API security protection module.
Operation description
Before calling this operation, make sure that protected objects or protected object groups already exist. For protected objects that have been added to WAF, call the DescribeDefenseResources operation to query their names. For created protected object groups, call the DescribeDefenseResourceGroups operation to query them. If no protected object group has been created, call the CreateDefenseResourceGroup operation to create one first.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyApisecModuleStatus |
update |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
You can call DescribeInstance to obtain the ID of the current WAF instance. |
waf_elasticity-cn-0xldbqtm** |
| Resources |
string |
No |
The name of the protected object. Note
You must specify at least one of Resources and ResourceGroups. |
cwaf-***-waf |
| ReportStatus |
integer |
No |
The compliance review status. Valid values:
|
1 |
| TraceStatus |
integer |
No |
The tracing audit status. Valid values:
|
1 |
| ResourceGroups |
string |
No |
The name of the protected object group to which the protected object is added. Note
You must specify at least one of Resources and ResourceGroups. |
group1 |
| RegionId |
string |
No |
The region where the WAF instance is deployed. 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. |
D7861F61-5B61-46CE-A47C-6B19****5EB0 |
Examples
Success response
JSON format
{
"RequestId": "D7861F61-5B61-46CE-A47C-6B19****5EB0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.