Mengambil daftar kelompok objek perlindungan keamanan API yang aktif.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeApisecProtectionGroups |
list |
*全部资源
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
| InstanceId |
string |
Yes |
ID instans WAF. Catatan
Panggil DescribeInstance untuk mengkueri ID instans WAF saat ini. |
waf_elasticity-cn-0xldbqt**** |
| ResourceGroup |
string |
No |
Nama kelompok objek yang dilindungi. |
group1 |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. |
10 |
| ApisecStatus |
integer |
No |
Saklar deteksi keamanan API. |
1 |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya Alibaba Cloud. |
rg-acfm***q |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The result of the request. |
||
| TotalCount |
integer |
The total number of protected object groups. |
8 |
| RequestId |
string |
The request ID. |
D7861F61-5B61-46CE-A47C-6B19****5EB0 |
| Data |
array<object> |
The list of protected object groups. |
|
|
object |
The information about the protected object group. |
||
| ApisecStatus |
integer |
The master switch for API security. |
1 |
| ReportStatus |
integer |
The compliance check switch. |
0 |
| ResourceGroup |
string |
The name of the protected object group. |
group1 |
| TraceStatus |
integer |
The traceability audit switch. |
0 |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 8,
"RequestId": "D7861F61-5B61-46CE-A47C-6B19****5EB0",
"Data": [
{
"ApisecStatus": 1,
"ReportStatus": 0,
"ResourceGroup": "group1",
"TraceStatus": 0
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.