Queries the containers of a service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ListServiceContainers |
get |
*Service
|
None | None |
Request syntax
GET /api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/containers HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region ID of the service. |
cn-shanghai |
| ServiceName |
string |
Yes |
The service name. |
foo |
| InstanceName |
string |
Yes |
The name of the instance that runs the service. |
foo-69xxxx4f4-5w9r9 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
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 |
Details of each container. |
Examples
Success response
JSON format
{
"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"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.