Mengkueri aturan kluster Cloud Hibrida.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeHybridCloudClusterRules |
get |
*All Resource
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans WAF. Catatan
Anda dapat memanggil operasi DescribeInstance untuk memperoleh ID instans WAF. |
waf_v3prepaid_public_cn-**** |
| RuleType |
string |
Yes |
Tipe aturan. Nilai valid:
|
pullin |
| ClusterId |
integer |
Yes |
ID kluster Cloud Hibrida. Catatan
Parameter ini hanya tersedia untuk skenario Cloud Hibrida. Anda dapat memanggil operasi DescribeHybridCloudClusters untuk memperoleh informasi tentang kluster Cloud Hibrida. |
428 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. |
10 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| RegionId |
string |
No |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfm***q |
| RuleContent |
string |
No |
Awalan nilai aturan yang akan dicocokkan. |
1.1.1.1 |
| RuleMatchType |
string |
No |
Logika pencocokan. Nilai valid:
|
exact |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| TotalCount |
integer |
The total number of cloud native mode entries returned. |
10 |
| RequestId |
string |
The ID of the request. |
D7861F61-5B61-46CE-A47C-6B19160D5EB0 |
| Data |
array<object> |
The response data. |
|
|
object |
The compliance detection result. |
||
| ClusterId |
integer |
The ID of the hybrid cloud cluster. |
1099 |
| ClusterRuleResourceId |
string |
The resource ID of the cluster rule. |
hdbc-clusterrule-*****khzre0ym0w |
| RuleConfig |
string |
The configuration of the traffic redirection rule:
|
{\"check_mode\": \"all\", \"type\": \"exact\", \"substance\": \"122\"} |
| RuleType |
string |
The type of the rule. Valid value:
|
pullin |
| Status |
string |
The status of the rule. Valid values:
|
1 |
| Version |
integer |
The version number. |
1 |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 10,
"RequestId": "D7861F61-5B61-46CE-A47C-6B19160D5EB0",
"Data": [
{
"ClusterId": 1099,
"ClusterRuleResourceId": "hdbc-clusterrule-*****khzre0ym0w",
"RuleConfig": "{\\\"check_mode\\\": \\\"all\\\", \\\"type\\\": \\\"exact\\\", \\\"substance\\\": \\\"122\\\"}",
"RuleType": "pullin",
"Status": "1",
"Version": 1
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.