Modifies the mitigation settings for a protection scenario.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyDefenseSceneConfig |
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 current WAF instance. |
waf-cn-0xldbqt**** |
| 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 |
| DefenseScene |
string |
Yes |
The protection scenario for which you want to modify the mitigation settings. Valid values:
|
apisec |
| ConfigKey |
string |
Yes |
The name of the configuration item to modify. If DefenseScene is set to apisec, the valid value is:
|
autoEnableStatus |
| ConfigValue |
string |
Yes |
The value to set for the configuration item. Note
The value of this parameter depends on the value of ConfigKey. For more information, see Description of mitigation setting parameters. |
true |
Mitigation setting parameters
API security (apisec)
If DefenseScene is set to apisec, you can modify the configuration for API security.
If ConfigKey is set to autoEnabled, set ConfigValue to "true" or "false".
Example
{
"InstanceId": "waf_cn****",
"DefenseScene": "apisec",
"ConfigKey": "autoEnabled",
"ConfigValue": "true"
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request results. |
||
| RequestId |
string |
The ID of the request. |
D7861F61-5B61-46CE-A47C-6B19160D5EB0 |
Examples
Success response
JSON format
{
"RequestId": "D7861F61-5B61-46CE-A47C-6B19160D5EB0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.