Changes the status of a protection rule template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyDefenseTemplateStatus |
update |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Web Application Firewall (WAF) instance. Note
Call the DescribeInstance operation to query the ID of the WAF instance. |
waf_cdnsdf3**** |
| TemplateId |
integer |
Yes |
The ID of the protection template. |
2249 |
| TemplateStatus |
integer |
Yes |
The new status of the protection rule template. Valid values:
|
1 |
| RegionId |
string |
No |
The region ID of the WAF instance. 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 result of the request. |
||
| RequestId |
string |
The ID of the request. |
58007AE3-65D9-57BA-ABB4-1A544015FB50 |
Examples
Success response
JSON format
{
"RequestId": "58007AE3-65D9-57BA-ABB4-1A544015FB50"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.