Retrieves a hybrid cloud cluster rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeHybridCloudClusterRule |
get |
*All Resource
|
None |
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 WAF instance. |
waf-cn-uqm33n***02 |
|
ClusterId |
integer |
No |
[Deprecated] The ID of the hybrid cloud cluster. |
1 |
|
RuleType |
string |
No |
[Deprecated] The type of the rule. Valid value:
|
pullin |
|
RegionId |
string |
No |
The region of the WAF instance. Valid values:
|
cn-hangzhou |
|
ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-acfm***q |
|
ClusterRuleResourceId |
string |
No |
The resource ID of the cluster rule. |
hdbc-clusterrule-*******m0w |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
|
RequestId |
string |
The request ID. |
1F29A6D2-9EB6-526D-A997-36888**99CB |
| ClusterRule |
object |
The information about the rule. |
|
|
RuleType |
string |
The type of the rule.
|
pullin |
|
RuleConfig |
string |
The configuration of the traffic routing rule.
|
{\"check_mode\":\"all\",\"exclude\":{\"exact\":[],\"regex\":[]}} |
|
RuleStatus |
string |
The status of the rule. Valid values:
|
on |
|
ClusterRuleResourceId |
string |
The resource ID of the cluster rule. |
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.