Mengkueri apakah fitur audit API server diaktifkan untuk kluster dan mengambil proyek Simple Log Service (SLS) yang menyimpan log audit API server.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:GetClusterAuditProject |
get |
*Cluster
|
None | None |
Sintaks permintaan
GET /clusters/{clusterid}/audit HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clusterid |
string |
Yes |
ID kluster ACK. |
cad1230511cbb4db4a488e58518****** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Informasi audit API server dari kluster. |
||
| sls_project_name |
string |
Proyek SLS yang menyimpan log audit API server dari kluster. |
k8s-log-cad1230511cbb4db4a488e58518****** |
| audit_enabled |
boolean |
Menunjukkan apakah fitur audit API server diaktifkan untuk kluster. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"sls_project_name": "k8s-log-cad1230511cbb4db4a488e58518******\n",
"audit_enabled": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.