Mengambil informasi tentang kelompok objek yang dilindungi menggunakan paginasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeDefenseResourceGroups |
list |
*全部资源
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Web Application Firewall (WAF). Catatan
Anda dapat memanggil operasi DescribeInstance untuk Tampilan ID instans WAF saat ini. |
waf_v2_public_cn-wwo36****0i |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya Alibaba Cloud. |
rg-acfmxc7lf****eq |
| GroupNameLike |
string |
No |
Nama kelompok objek yang dilindungi yang ingin Anda kueri. Kueri fuzzy didukung. |
demoGroupName |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1, yang menunjukkan halaman pertama. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 20, yang menunjukkan 20 entri per halaman. |
20 |
| GroupNames |
string |
No |
Nama kelompok objek yang dilindungi yang ingin Anda kueri. Pisahkan beberapa nama dengan koma (,). |
groupName1,groupName2 |
| RegionId |
string |
No |
Wilayah tempat instans WAF di-deploy. Nilai valid:
|
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
BFEC5C77-049B-5E88-A5B6-CB0C****B66E |
| TotalCount |
integer |
The total number of entries returned. |
10 |
| Groups |
array<object> |
The list of protected object groups. |
|
|
object |
The protected object group. |
||
| Description |
string |
The description of the protected object group. |
This is test description |
| GmtCreate |
integer |
The time when the protected object group was created. Unit: milliseconds. |
1624343180000 |
| GmtModified |
integer |
The most recent time when the protected object group was modified. Unit: milliseconds. |
1701656305000 |
| GroupName |
string |
The name of the protected object group. |
apptest |
| ResourceList |
string |
The names of the protected objects that are added to the protected object group. Separate multiple protected objects with commas (,). |
example02.aliyun-waf,example01.aliyun-waf |
Contoh
Respons sukses
JSONformat
{
"RequestId": "BFEC5C77-049B-5E88-A5B6-CB0C****B66E",
"TotalCount": 10,
"Groups": [
{
"Description": "This is test description",
"GmtCreate": 1624343180000,
"GmtModified": 1701656305000,
"GroupName": "apptest",
"ResourceList": "example02.aliyun-waf,example01.aliyun-waf"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.