Mengambil daftar kebijakan pemblokiran image berisiko.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListOpaClusterStrategyNew |
list |
*All resources
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| StrategyName |
array |
No |
Nama kebijakan. |
|
|
string |
No |
Nama kebijakan. |
default |
|
| ImageName |
array |
No |
Daftar nama image. |
|
|
string |
No |
Nama image. |
repo:tag |
|
| Label |
array |
No |
Daftar label. |
|
|
string |
No |
Label Kontainer. |
testlabel |
|
| PageSize |
integer |
No |
Jumlah entri per halaman dalam kueri berhalaman. |
20 |
| CurrentPage |
integer |
No |
Nomor halaman saat ini dalam kueri berhalaman. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
PageResult |
||
| List |
array<object> |
Daftar kebijakan. |
|
|
object |
Objek kebijakan. |
||
| StrategyId |
integer |
ID kebijakan. |
1 |
| StrategyName |
string |
Nama kebijakan. |
auto-strategy-vohuiq |
| Description |
string |
Deskripsi. |
Config the Event Audit policys |
| UnScanedImage |
boolean |
Apakah aturan mendukung image yang belum dipindai. Nilai valid:
|
true |
| MaliciousImage |
boolean |
Apakah aturan mendukung image berbahaya Internet. Nilai valid:
|
true |
| Action |
integer |
Aksi yang dilakukan oleh kebijakan. Nilai valid:
|
1 |
| ClusterCount |
integer |
Jumlah Kluster tempat kebijakan berlaku. |
1 |
| ClusterIdList |
array |
Daftar Kluster tempat kebijakan berlaku. |
|
|
string |
Kluster tempat kebijakan berlaku. |
cfb41a8**8a106 |
|
| ImageName |
array |
Nama image. |
|
|
string |
Nama image. |
centos |
|
| Label |
array |
Label Kontainer. |
|
|
string |
Label Kontainer. |
alertmanager:main |
|
| PageInfo |
object |
Informasi paginasi hasil kueri. |
|
| CurrentPage |
integer |
Nomor halaman saat ini dalam kueri berhalaman. |
1 |
| PageSize |
integer |
Jumlah maksimum entri per halaman dalam kueri berhalaman. |
20 |
| TotalCount |
integer |
Jumlah total entri. |
45 |
| Count |
integer |
Jumlah entri pada halaman saat ini. |
20 |
| Success |
boolean |
Apakah panggilan berhasil. Nilai valid:
|
true |
| Code |
string |
Kode hasil. Nilai 200 menunjukkan keberhasilan. Nilai lain menunjukkan kegagalan. Anda dapat menggunakan bidang ini untuk menentukan penyebab kegagalan. |
200 |
| Message |
string |
Paket hasil. Nilai tetap: success. Ini menunjukkan bahwa ekspor berhasil. |
success |
| RequestId |
string |
ID permintaan, yaitu pengidentifikasi unik yang dihasilkan oleh Alibaba Cloud untuk permintaan. Anda dapat menggunakan ID ini untuk memecahkan masalah. |
7DFD947C-9172-5129-B783-DD14C55191D2 |
| HttpStatusCode |
integer |
Kode status HTTP. |
200 |
Contoh
Respons sukses
JSONformat
{
"List": [
{
"StrategyId": 1,
"StrategyName": "auto-strategy-vohuiq",
"Description": "Config the Event Audit policys",
"UnScanedImage": true,
"MaliciousImage": true,
"Action": 1,
"ClusterCount": 1,
"ClusterIdList": [
"cfb41a8**8a106"
],
"ImageName": [
"centos"
],
"Label": [
"alertmanager:main"
]
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 45,
"Count": 20
},
"Success": true,
"Code": "200",
"Message": "success",
"RequestId": "7DFD947C-9172-5129-B783-DD14C55191D2",
"HttpStatusCode": 200
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | A server error occurred. Try again later. |
| 403 | NoPermission | caller has no permission | The current operation is not authorized. Contact the Alibaba Cloud account to grant the required permissions in the RAM console and try again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.