Mengkueri kontainer layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ListServiceContainers |
get |
*Service
|
None | None |
Sintaks permintaan
GET /api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/containers HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah layanan. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. |
foo |
| InstanceName |
string |
Yes |
Nama instans yang menjalankan layanan. |
foo-69xxxx4f4-5w9r9 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| ServiceName |
string |
The service name. |
foo |
| Containers |
array |
The containers of the service. |
|
| ContainerInfo |
The detailed information about the container. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"ServiceName": "foo",
"Containers": [
{
"Name": "worker0",
"Image": "registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320",
"Port": 8080,
"RestartCount": 0,
"Ready": true,
"CurrentStatus": "Waiting",
"CurrentReaon": "PodInitializing",
"CurrentTimestamp": "2022-03-21T06:17:57Z",
"LastStatus": "Terminated",
"LastReason": "Error",
"LastTimestamp": "2022-03-21T05:17:57Z"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.