Kebijakan keamanan kontainer kluster ACK menyediakan serangkaian pustaka aturan bawaan yang lengkap, termasuk Compliance, Infra, K8s-general, dan PSP, untuk memastikan operasi kontainer yang aman di lingkungan produksi. Anda dapat memanggil operasi DescribePolicyDetails untuk mengkueri detail aturan tata kelola kebijakan tertentu, seperti deskripsi templat aturan, aksi tata kelola, dan tingkat keparahan tata kelola.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribePolicyDetails |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /policies/{policy_name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| policy_name |
string |
Yes |
Nama aturan tata kelola kebijakan. |
ACKAllowedRepos |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| name |
string |
Nama aturan tata kelola kebijakan. |
ACKAllowedRepos |
| category |
string |
Tipe templat aturan. |
k8s-general |
| description |
string |
Deskripsi templat aturan. |
Requires container images to begin with a repo string from a specified list |
| action |
string |
Aksi tata kelola aturan. Nilai valid:
|
enforce |
| severity |
string |
Tingkat keparahan tata kelola aturan. Nilai valid:
|
high |
| template |
string |
Detail templat aturan. |
详情请参见请求示例 |
| no_config |
integer |
Apakah konfigurasi kebijakan diperlukan. Nilai valid:
|
0 |
| is_deleted |
integer |
Apakah aturan dihapus. Nilai valid:
|
0 |
Contoh
Respons sukses
JSONformat
{
"name": "ACKAllowedRepos",
"category": "k8s-general",
"description": "Requires container images to begin with a repo string from a specified list",
"action": "enforce",
"severity": "high",
"template": "详情请参见请求示例",
"no_config": 0,
"is_deleted": 0
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.