Mengambil data log kluster untuk analisis akar penyebab dan pelacakan saat terjadi masalah pada kluster.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeClusterLogs |
get |
*Cluster
|
None | None |
Sintaks permintaan
GET /clusters/{ClusterId}/logs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID kluster. |
c106f377e16f34eb1808d6b9362c9**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
array |
Daftar log. |
||
|
object |
日志详情。 |
||
| ID |
integer |
日志 ID。 |
73117232145****** |
| cluster_id |
string |
集群 ID。 |
c23421cfa74454bc8b37163fd19af*** |
| cluster_log |
string |
日志内容。 |
start to update cluster status to CREATE_COMPLETE |
| created |
string |
日志产生时间。 |
2025-04-10T17:54:26+08:00 |
| updated |
string |
日志更新时间。 |
2025-04-10T17:54:26+08:00 |
Contoh
Respons sukses
JSONformat
[
{
"ID": 0,
"cluster_id": "c23421cfa74454bc8b37163fd19af***",
"cluster_log": "start to update cluster status to CREATE_COMPLETE",
"created": "2025-04-10T17:54:26+08:00",
"updated": "2025-04-10T17:54:26+08:00"
}
]
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.