Modifies the rule information of a hybrid cloud cluster.
Operation description
Before calling this operation, make sure that the hybrid cloud feature is enabled for the WAF instance. You can call the DescribeInstance operation to query instance details. If the Details.HybridCloud parameter in the response is true, the hybrid cloud feature is enabled. If the feature is not enabled, log on to the WAF console and upgrade the instance to enable the hybrid cloud feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyHybridCloudClusterRule |
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 DescribeInstanceInfo operation to query instance ID of the current WAF instance. |
waf-cn-n6w***x52m |
| ClusterRuleResourceId |
string |
No |
The resource ID of the cluster rule. |
hdbc-clusterrule-*******ym0w |
| RuleConfig |
string |
No |
The traffic redirection rule configuration. Important The mode cannot be modified.
|
{\"check_mode\": \"all\", \"type\": \"exact\", \"substance\": \"122\"} |
| 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 |
ClusterId
deprecated
|
integer |
No |
[Deprecated] The ID of the hybrid cloud cluster. |
10* |
RuleType
deprecated
|
string |
No |
[Deprecated] The rule type. Valid values:
|
pullin |
| RuleStatus |
string |
No |
The rule status. Valid values:
|
on |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
03D73D88-57D8-5BA2-96A4-6357CE***19 |
Examples
Success response
JSON format
{
"RequestId": "03D73D88-57D8-5BA2-96A4-6357CE***19"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.