Retrieves 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. Call the DescribeInstance operation to query instance details. If the returned parameter Details.HybridCloud is true, the hybrid cloud feature is enabled. If it 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:DescribeHybridCloudClusterRule |
get |
*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-cn-uqm33n***02 |
ClusterId
deprecated
|
integer |
No |
[Deprecated] The hybrid cloud cluster ID. |
1 |
RuleType
deprecated
|
string |
No |
[Deprecated] The rule type. Valid values:
|
pullin |
| RegionId |
string |
No |
The region where the WAF instance is deployed. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The Alibaba Cloud resource group ID. |
rg-acfm***q |
| ClusterRuleResourceId |
string |
No |
The cluster rule resource ID. |
hdbc-clusterrule-*******m0w |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1F29A6D2-9EB6-526D-A997-36888**99CB |
| ClusterRule |
object |
The rule information. |
|
| RuleType |
string |
The rule type. Valid values:
|
pullin |
| RuleConfig |
string |
The traffic redirection rule configuration:
|
{\"check_mode\":\"all\",\"exclude\":{\"exact\":[],\"regex\":[]}} |
| RuleStatus |
string |
The rule status. Valid values:
|
on |
| ClusterRuleResourceId |
string |
The cluster rule resource ID. |
hdbc-clusterrule-2m*****m0w |
Examples
Success response
JSON format
{
"RequestId": "1F29A6D2-9EB6-526D-A997-36888**99CB",
"ClusterRule": {
"RuleType": "pullin",
"RuleConfig": "{\\\"check_mode\\\":\\\"all\\\",\\\"exclude\\\":{\\\"exact\\\":[],\\\"regex\\\":[]}}",
"RuleStatus": "on",
"ClusterRuleResourceId": "hdbc-clusterrule-2m*****m0w"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.