Mengambil detail diagnostik dari sebuah layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:DescribeServiceDiagnosis |
get |
*Service
|
None | None |
Sintaks permintaan
GET /api/v2/services/{ClusterId}/{ServiceName}/diagnosis HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID region tempat layanan di-deploy. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. |
foo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
40325405-579C-4D82**** |
| DiagnosisList |
array<object> |
Daftar diagnostik. |
|
|
object |
|||
| Error |
string |
Pesan kesalahan. |
Container worker0 failed to pull image. |
| Causes |
array |
Penyebab kesalahan. |
|
|
string |
Penyebab kesalahan. |
Failed to pull image "busybox:no_exist_tag": rpc error: code = NotFound. |
|
| Advices |
array |
Saran tentang cara menangani kesalahan. |
|
|
string |
Saran tentang cara menangani kesalahan. |
Please make sure the container image exists. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"DiagnosisList": [
{
"Error": "Container worker0 failed to pull image.",
"Causes": [
"Failed to pull image \"busybox:no_exist_tag\": rpc error: code = NotFound."
],
"Advices": [
"Please make sure the container image exists."
]
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.