Queries information about Elastic Container Instance (ECI) instances in batches.
Operation description
After an ECI instance stops running, the underlying compute resources are revoked. Other resources created together with the instance (such as EIPs) are released together with the instance by default.
- The metadata of instances in a desired state (Failed, Succeeded, or Expired) is retained as follows:
All instance information within the last hour is retained.
For instances older than one hour, only the most recent 100 records are retained (calculated separately for each region).
If you use a Resource Access Management (RAM) user or RAM role to perform the query, an empty list is returned when the RAM user or role does not have the required permissions for this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:DescribeContainerGroups |
get |
ContainerGroup
ContainerGroup
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. |
cn-hangzhou |
| RegionId |
string |
Yes |
The zone of the instance. If this parameter is left empty, the system automatically selects a zone. Default value: empty. |
cn-hangzhou-h |
| ZoneId |
string |
No |
The vSwitch ID of the instance. |
vsw-bp1jrgfqqy54kg5hc**** |
| VSwitchId |
string |
No |
The token for the next query. An empty value of NextToken indicates that no more results exist. Note
You do not need to specify this parameter for the first query. For subsequent queries, obtain the token from the response of the previous query. |
d78f2dd8-5979-42fe-****-b16db43be5bc |
| NextToken |
string |
No |
The maximum number of resources to return. If this parameter is not specified, the default value is 20. The maximum value is 20. Note
The number of returned results may be less than the specified number but never exceeds it. |
20 |
| Limit |
integer |
No |
The sequence of instance IDs. You can specify up to 20 IDs. The character string must be in JSON format. |
["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"] |
| ContainerGroupIds |
string |
No |
The instance name, which is the container group name. |
test |
| ContainerGroupName |
string |
No |
The instance status. Valid values:
|
Running |
| Status |
string |
No |
The ID of the resource group to which the instance belongs. |
rg-aekzh43v***** |
| ResourceGroupId |
string |
No |
Specifies whether to return event information. |
true |
| WithEvent |
boolean |
No |
The instance tag information. |
true |
| Tag |
array<object> |
No |
The computing category. Valid values:
|
economy |
|
object |
No |
The tags of the instances. |
||
| Key |
string |
No |
The tag key of the instance. |
name |
| Value |
string |
No |
The tag value of the instance. |
test |
| ComputeCategory |
string |
No |
The ID of the security group to which the instance belongs. |
sg-uf66jeqopgqa9hdn**** |
| SecurityGroupId |
string |
No |
The ID of the security group to which the instance belongs. |
sg-uf66jeqopgqa9hdn**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The number of instances. |
1 |
| NextToken |
string |
The token for the next query. |
d78f2dd8-5979-42fe-****-b16db43be5bc |
| RequestId |
string |
The request ID. |
89945DD3-9072-47D0-A318-353284CFC7B3 |
| ContainerGroups |
array<object> |
The list of container group information. |
|
|
array<object> |
The list of container group information. |
||
| Status |
string |
The instance status. Valid values:
|
Running |
| CreationTime |
string |
The time when the system created the instance after receiving the request. The time is displayed in UTC in RFC 3339 format. |
2018-08-02T15:00:00Z |
| VpcId |
string |
The ID of the VPC to which the instance belongs. |
vpc-1vzjjflab6wvjox**** |
| InternetIp |
string |
The public IP address. |
192.0.XX.XX |
| TenantSecurityGroupId |
string |
This parameter is not available for use. |
sg-xxx |
| SecurityGroupId |
string |
The security group ID. |
sg-bp12ujq5zpxuyjfo3o8r |
| HostAliases |
array<object> |
The hostname mappings of a container in the instance. |
|
|
object |
The hostname mappings of a container in the instance. |
||
| Hostnames |
array |
The host information. |
|
|
string |
The hostname. |
['hehe.com', 'haha.com'] |
|
| Ip |
string |
The IP address. |
192.0.XX.XX |
| Tags |
array<object> |
The instance tag information. |
|
|
object |
The instance tag information. |
||
| Key |
string |
The tag key. |
name |
| Value |
string |
The tag value. |
test-xh |
| Events |
array<object> |
The event information. A maximum of 50 events are returned. |
|
|
object |
The event information. A maximum of 50 events are returned. |
||
| Type |
string |
The event type. Valid values:
|
Normal |
| LastTimestamp |
string |
The time when the event ended. |
2018-08-02T15:00:00Z |
| Message |
string |
The event message. |
Started container |
| Name |
string |
The name of the object to which the event belongs. |
test-xxx |
| Reason |
string |
The event name. |
Created |
| Count |
integer |
The number of events. |
20 |
| FirstTimestamp |
string |
The time when the event started. |
2018-08-02T15:00:00Z |
| SucceededTime |
string |
The time when all containers exited successfully. The time is displayed in UTC in RFC 3339 format. |
2019-12-11T04:33:42Z |
| SpotStrategy |
string |
The bidding strategy of the instance. Valid values:
|
NoSpot |
| SpotPriceLimit |
number |
The maximum hourly price of the spot instance. This parameter is returned only when SpotStrategy is set to SpotWithPriceLimit. |
0.025 |
| EphemeralStorage |
integer |
The size of the temporary storage space. Unit: GiB. |
20 |
| TenantEniInstanceId |
string |
This parameter is not available for use. |
i-xxx |
| Discount |
integer |
The discount. |
9 |
| RestartPolicy |
string |
The restart policy of the container group. Valid values:
|
Never |
| Memory |
number |
The instance-level memory size. Unit: GiB. |
4.0 |
| TenantVSwitchId |
string |
This parameter is not available for use. |
vsw-xxx |
| Containers |
array<object> |
The list of containers in the instance. |
|
|
array<object> |
The list of containers in the instance. |
||
| LivenessProbe |
object |
The liveness probe. |
|
| SuccessThreshold |
integer |
The minimum number of consecutive successes for the probe to be considered successful after having failed. Default value: 1. The current value must be 1. |
1 |
| InitialDelaySeconds |
integer |
The number of seconds after the container starts before the probe is initiated. |
10 |
| FailureThreshold |
integer |
The minimum number of consecutive failures for the probe to be considered failed after having succeeded. Default value: 3. |
3 |
| TimeoutSeconds |
integer |
The timeout period of the probe. Default value: 1 second. Minimum value: 1 second. |
10 |
| TcpSocket |
object |
TcpSocket。 |
|
| Host |
string |
The hostname. |
1.2.3.4 |
| Port |
integer |
The port number. |
80 |
| Execs |
array |
The commands to execute. |
|
|
string |
The commands to execute. |
["/bin/sh", "-c", "echo Hello world > /usr/share/message"] |
|
| HttpGet |
object |
HttpGet。 |
|
| Scheme |
string |
HTTP or HTTPS. |
HTTP |
| Path |
string |
The path for the HTTP GET probe. |
/usr/nginx/ |
| Port |
integer |
The port for the HTTP GET probe. |
80 |
| PeriodSeconds |
integer |
The interval at which the probe is performed. Default value: 10 seconds. Minimum value: 1 second. |
5 |
| Commands |
array |
The container startup commands. |
|
|
string |
The container startup commands. |
[/bin/sh echo] |
|
| VolumeMounts |
array<object> |
The volume mount information. |
|
|
object |
The volume mount information. |
||
| MountPropagation |
string |
The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod or even with other pods on the same node. Valid values:
|
None |
| MountPath |
string |
The mount directory. The content under the mount directory in the container is overwritten by the content of the volume. |
/usr/share/ |
| ReadOnly |
boolean |
Indicates whether the mount is read-only. |
false |
| Name |
string |
The volume name. |
test-empty |
| SubPath |
string |
The subdirectory of the volume. This allows the instance to mount different directories of the same volume to different directories of the container. |
/usr/sub |
| Args |
array |
The container startup arguments. |
|
|
string |
The container startup arguments. |
["hello"] |
|
| Image |
string |
The container image. |
mysql |
| Ports |
array<object> |
The exposed ports and protocols. |
|
|
object |
The exposed ports and protocols. |
||
| Protocol |
string |
The protocol type. |
TCP |
| Port |
integer |
The port number. Valid values: 1 to 65535. |
8080 |
| RestartCount |
integer |
The number of restarts. |
0 |
| ImagePullPolicy |
string |
Pull image pull policy. Valid values:
|
Always |
| StdinOnce |
boolean |
When stdin is set to true, the stdin stream remains open across multiple attach sessions. If StdinOnce is set to true, stdin is opened when the container starts, remains empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects. At that point, stdin is in the shutdown state and remains in the shutdown state until the container restarts. This describes the enabling status of the StdinOnce feature. |
true |
| Cpu |
number |
The number of vCPUs of the container. |
2.0 |
| PreviousState |
object |
The previous state. |
|
| StartTime |
string |
The time when the container started running. |
2021-12-02T15:00:00Z |
| FinishTime |
string |
The time when the container stopped running. |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
The status details. |
working |
| State |
string |
The container state. Valid values:
|
Terminated |
| Message |
string |
The container state message. |
Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx) |
| Signal |
integer |
The container state signal. |
1 |
| ExitCode |
integer |
The exit code of the container. |
0 |
| Reason |
string |
The reason why the container is in this state. |
Completed |
| Tty |
boolean |
Indicates whether interaction is enabled. Default value: false. For example, if Command is set to |
false |
| WorkingDir |
string |
The working directory. |
/usr/local/nginx |
| CurrentState |
object |
The current state of the container. |
|
| StartTime |
string |
The time when the container started running. |
2021-12-02T15:00:00Z |
| FinishTime |
string |
The time when the container stopped running. |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
The details of the container state. |
working |
| State |
string |
The state of the container. Valid values:
|
Terminated |
| Message |
string |
The container state message. |
Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx) |
| Signal |
integer |
The container state signal. |
1 |
| ExitCode |
integer |
The exit code of the container. |
0 |
| Reason |
string |
The reason why the container is in this state. |
Started |
| Ready |
boolean |
Indicates whether the container has passed its readiness probe. |
true |
| Gpu |
integer |
The number of GPUs. |
1 |
| SecurityContext |
object |
The security context of the instance. |
|
| ReadOnlyRootFilesystem |
boolean |
Indicates whether the root file system is read-only. Currently, only True is supported. |
true |
| RunAsUser |
integer |
The user ID that is used to run the container. |
1000 |
| Capability |
object |
The specific permissions granted to processes in the container. |
|
| Adds |
array |
The specific permissions granted to processes in the container. |
|
|
string |
The specific permissions granted to processes in the container. |
[NET_ADMIN] |
|
| Memory |
number |
The memory size of the container. Unit: GiB. |
2.0 |
| Stdin |
boolean |
Indicates whether this container allocates a buffer for standard input in the container runtime. If this parameter is not set, reads from standard input in the container result in EOF. Default value: false. |
true |
| Name |
string |
The container name. |
nginx |
| EnvironmentVars |
array<object> |
The environment variables. |
|
|
array<object> |
The environment variables. |
||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/bin/ |
| ValueFrom |
object |
The source of the environment variable value. This parameter cannot be used if the value is not empty. |
|
| FieldRef |
object |
The specified field. |
|
| FieldPath |
string |
The path of the field. |
status.podIP |
| ReadinessProbe |
object |
The readiness probe, which is used to check whether the container is ready to serve requests. |
|
| SuccessThreshold |
integer |
The minimum number of consecutive successes for the probe to be considered successful after having failed. Default value: 1. The current value must be 1. |
1 |
| InitialDelaySeconds |
integer |
The number of seconds after the container starts before the probe is initiated. |
5 |
| FailureThreshold |
integer |
The minimum number of consecutive failures for the probe to be considered failed after having succeeded. Default value: 3. |
3 |
| TimeoutSeconds |
integer |
The timeout period of the probe. Default value: 1 second. Minimum value: 1 second. |
1 |
| TcpSocket |
object |
The TCP socket method for health checks. |
|
| Host |
string |
Host。 |
1.2.3.4 |
| Port |
integer |
The port number. |
8888 |
| Execs |
array |
The commands executed in the container when the command-line method is used for health checks. |
|
|
string |
The commands executed in the container when the command-line method is used for health checks. |
["/bin/sh", "-c", "echo Hello world > /usr/share/message"] |
|
| HttpGet |
object |
The HTTP request method for health checks. |
|
| Scheme |
string |
HTTP/HTTPS。 |
HTTP |
| Path |
string |
The path for the HTTP GET probe. |
/usr/local |
| Port |
integer |
The port number for the HTTP GET health check. |
8080 |
| PeriodSeconds |
integer |
The interval at which the probe is performed. Default value: 10 seconds. Minimum value: 1 second. |
1 |
| EniInstanceId |
string |
The ID of the elastic network interface controller (NIC). |
eni-bp14rzqi6fd8satm**** |
| InitContainers |
array<object> |
The init containers. |
|
|
array<object> |
The init containers. |
||
| VolumeMounts |
array<object> |
The volumes mounted to the init container. |
|
|
object |
The volumes mounted to the init container. |
||
| MountPropagation |
string |
The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod or even with other pods on the same node. Valid values:
|
None |
| MountPath |
string |
The mount directory. The content under the mount directory in the container is overwritten by the content of the volume. |
/usr/share/ |
| ReadOnly |
boolean |
Indicates whether the mount is read-only. |
false |
| Name |
string |
The volume name, which is the same as the Name value in Volume. |
test-empty |
| Args |
array |
The startup arguments. |
|
|
string |
The startup arguments. |
['hello world'] |
|
| Image |
string |
The image. |
nginx |
| Ports |
array<object> |
The exposed ports and protocols. |
|
|
object |
The exposed ports and protocols. |
||
| Protocol |
string |
The protocol type. |
TCP |
| Port |
integer |
The port number. Valid values: 1 to 65535. |
8888 |
| RestartCount |
integer |
The number of restarts. |
5 |
| ImagePullPolicy |
string |
Pull image pull policy. Valid values:
|
Always |
| PreviousState |
object |
The previous state. |
|
| StartTime |
string |
The time when the container started running. |
2021-12-02T15:00:00Z |
| FinishTime |
string |
The time when the container stopped running. |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
The status details. |
working |
| State |
string |
The state of the container. Valid values: Waiting, Running, and Terminated. |
Terminated |
| Message |
string |
The container state message. |
Started container |
| Signal |
integer |
The container state signal. |
1 |
| ExitCode |
integer |
The exit code of the container. |
0 |
| Reason |
string |
The reason why the container is in this state. |
completed |
| WorkingDir |
string |
The working directory. |
/usr/test |
| Cpu |
number |
The number of vCPUs. |
1.0 |
| CurrentState |
object |
The current state. |
|
| StartTime |
string |
The time when the container started running. |
2021-12-02T15:00:00Z |
| FinishTime |
string |
The time when the container stopped running. |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
The status details. |
working |
| State |
string |
The state of the container. Valid values:
|
Running |
| Message |
string |
The event message. |
Created container |
| Signal |
integer |
The container state signal. |
1 |
| ExitCode |
integer |
The exit code of the container. |
0 |
| Reason |
string |
The reason why the container is in this state. |
Started |
| Command |
array |
The startup command. |
|
|
string |
The startup command. |
[/bin/sh echo] |
|
| Ready |
boolean |
Indicates whether the container has passed its readiness probe. |
true |
| Gpu |
integer |
The number of GPUs. |
1 |
| SecurityContext |
object |
The security context of the container. |
|
| ReadOnlyRootFilesystem |
boolean |
Indicates whether the root file system is read-only. Currently, only True is supported. |
true |
| RunAsUser |
integer |
The UID used to run the entry point of the container process. |
1557 |
| Capability |
object |
The specific permissions granted to processes in the container. |
|
| Adds |
array |
The specific permissions granted to processes in the container. |
|
|
string |
The specific permissions granted to processes in the container. |
NET_ADMIN |
|
| Memory |
number |
The memory size of the init container. Unit: GiB. |
2.0 |
| Name |
string |
The container name. |
Init-xxx |
| EnvironmentVars |
array<object> |
The environment variables. |
|
|
array<object> |
The environment variables. |
||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/local/bin |
| ValueFrom |
object |
The source of the environment variable value. This parameter cannot be used if the value is not empty. |
|
| FieldRef |
object |
The specified field. |
|
| FieldPath |
string |
The path of the field to select in the specified version. Currently, only |
status.podIP |
| ContainerGroupId |
string |
The instance ID. |
eci-bp1jrgfqqy54kg5hc**** |
| TenantEniIp |
string |
This parameter is not available for use. |
10.10.XX.XX |
| InstanceType |
string |
The specified ECS instance type. |
ecs.g5.large |
| IntranetIp |
string |
The internal IP address. |
172.16.XX.XX |
| Ipv6Address |
string |
The IPv6 address. |
2001:XXXX:4:4:4:4:4:4 |
| RegionId |
string |
The region ID of the instance. |
cn-hangzhou |
| DnsConfig |
object |
The DNS configuration. |
|
| Searches |
array |
The list of DNS search domains. |
|
|
string |
The DNS search domain. |
svc.local.kubenetes |
|
| Options |
array<object> |
The list of object options. Each object consists of a Name and an optional Value. |
|
|
object |
The list of object options. Each object consists of a Name and an optional Value. |
||
| Value |
string |
The variable value of the object. |
value |
| Name |
string |
The variable name of the object. |
name |
| NameServers |
array |
The list of IP addresses of DNS servers. |
|
|
string |
The IP address. |
[10.2.*.*] |
|
| Volumes |
array<object> |
The volume information. |
|
|
array<object> |
The volume information. |
||
| Type |
string |
The volume type. Valid values:
|
EmptyDirVolume |
| DiskVolumeDiskId |
string |
The ID of the DiskVolume. |
d-xxxx |
| NFSVolumeReadOnly |
boolean |
Indicates whether the mount is read-only. |
false |
| ConfigFileVolumeConfigFileToPaths |
array<object> |
The list of configuration file paths. |
|
|
object |
The list of configuration file paths. |
||
| Path |
string |
The relative file path. |
/usr/bin/ |
| Content |
string |
The content of the configuration file (32 KB). |
hello world |
| FlexVolumeFsType |
string |
The type of the mounted file system. The default value depends on the FlexVolume script. |
ntfs |
| FlexVolumeDriver |
string |
The driver name used for the FlexVolume. |
flexvolume |
| DiskVolumeFsType |
string |
The volume type. |
xfs |
| FlexVolumeOptions |
string |
The list of FlexVolume object options. |
[nolock,tcp,noresvport] |
| NFSVolumeServer |
string |
The NFS server address. |
0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com |
| NFSVolumePath |
string |
The NFS volume path. |
/eci |
| Name |
string |
The volume name. |
test-empty |
| EmptyDirVolumeMedium |
string |
The storage medium of the EmptyDir volume. By default, this parameter is empty, which indicates that the node file system is used. Valid values:
|
Memory |
| EmptyDirVolumeSizeLimit |
string |
The size of the EmptyDir volume. |
256Mi |
| RamRoleName |
string |
The name of the instance RAM role. Elastic Container Instance and ECS share the instance RAM role. For more information, see Use an instance RAM role by calling API operations. |
ram:PassRole |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1vzjjflab6wvjox**** |
| Cpu |
number |
The number of vCPUs at the instance level. |
2.0 |
| ExpiredTime |
string |
The time when the instance failed due to overdue payment. The time is in UTC and in RFC 3339 format. |
2018-08-02T15:00:00Z |
| ResourceGroupId |
string |
The resource group ID. |
rg-8db03793gfrz**** |
| ZoneId |
string |
The zone where the instance resides. |
cn-hangzhou-h |
| ContainerGroupName |
string |
The instance name. |
test |
| EciSecurityContext |
object |
The security context of the container group. |
|
| Sysctls |
array<object> |
The sysctl parameters. |
|
|
object |
The sysctl parameters. |
||
| Value |
string |
The value of the sysctl parameter. |
65536 |
| Name |
string |
The name of the sysctl parameter. |
kernel.msgmax |
| FailedTime |
string |
The time when the instance failed. The time is in UTC and in RFC 3339 format. |
2018-08-02T15:00:00Z |
| ComputeCategory |
string |
The computing category. Valid values:
|
economy |
| DnsPolicy |
string |
The DNS policy. Valid values:
|
None |
Examples
Success response
JSON format
{
"TotalCount": 1,
"NextToken": "d78f2dd8-5979-42fe-****-b16db43be5bc",
"RequestId": "89945DD3-9072-47D0-A318-353284CFC7B3",
"ContainerGroups": [
{
"Status": "Running",
"CreationTime": "2018-08-02T15:00:00Z",
"VpcId": "vpc-1vzjjflab6wvjox****",
"InternetIp": "192.0.XX.XX",
"TenantSecurityGroupId": "sg-xxx",
"SecurityGroupId": "sg-bp12ujq5zpxuyjfo3o8r",
"HostAliases": [
{
"Hostnames": [
"['hehe.com', 'haha.com']"
],
"Ip": "192.0.XX.XX"
}
],
"Tags": [
{
"Key": "name",
"Value": "test-xh"
}
],
"Events": [
{
"Type": "Normal",
"LastTimestamp": "2018-08-02T15:00:00Z",
"Message": "Started container",
"Name": "test-xxx",
"Reason": "Created",
"Count": 20,
"FirstTimestamp": "2018-08-02T15:00:00Z"
}
],
"SucceededTime": "2019-12-11T04:33:42Z",
"SpotStrategy": "NoSpot",
"SpotPriceLimit": 0.025,
"EphemeralStorage": 20,
"TenantEniInstanceId": "i-xxx",
"Discount": 9,
"RestartPolicy": "Never",
"Memory": 4,
"TenantVSwitchId": "vsw-xxx",
"Containers": [
{
"LivenessProbe": {
"SuccessThreshold": 1,
"InitialDelaySeconds": 10,
"FailureThreshold": 3,
"TimeoutSeconds": 10,
"TcpSocket": {
"Host": "1.2.3.4",
"Port": 80
},
"Execs": [
"[\"/bin/sh\", \"-c\", \"echo Hello world > /usr/share/message\"]"
],
"HttpGet": {
"Scheme": "HTTP",
"Path": "/usr/nginx/",
"Port": 80
},
"PeriodSeconds": 5
},
"Commands": [
"[/bin/sh echo]"
],
"VolumeMounts": [
{
"MountPropagation": "None",
"MountPath": "/usr/share/",
"ReadOnly": false,
"Name": "test-empty",
"SubPath": "/usr/sub"
}
],
"Args": [
"[\"hello\"]"
],
"Image": "mysql",
"Ports": [
{
"Protocol": "TCP",
"Port": 8080
}
],
"RestartCount": 0,
"ImagePullPolicy": "Always",
"StdinOnce": true,
"Cpu": 2,
"PreviousState": {
"StartTime": "2021-12-02T15:00:00Z",
"FinishTime": "2021-12-02T15:01:00Z",
"DetailStatus": "working",
"State": "Terminated",
"Message": "Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)",
"Signal": 1,
"ExitCode": 0,
"Reason": "Completed"
},
"Tty": false,
"WorkingDir": "/usr/local/nginx",
"CurrentState": {
"StartTime": "2021-12-02T15:00:00Z",
"FinishTime": "2021-12-02T15:01:00Z",
"DetailStatus": "working",
"State": "Terminated",
"Message": "Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)",
"Signal": 1,
"ExitCode": 0,
"Reason": "Started"
},
"Ready": true,
"Gpu": 1,
"SecurityContext": {
"ReadOnlyRootFilesystem": true,
"RunAsUser": 1000,
"Capability": {
"Adds": [
"[NET_ADMIN]"
]
}
},
"Memory": 2,
"Stdin": true,
"Name": "nginx",
"EnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/bin/",
"ValueFrom": {
"FieldRef": {
"FieldPath": "status.podIP"
}
}
}
],
"ReadinessProbe": {
"SuccessThreshold": 1,
"InitialDelaySeconds": 5,
"FailureThreshold": 3,
"TimeoutSeconds": 1,
"TcpSocket": {
"Host": "1.2.3.4",
"Port": 8888
},
"Execs": [
"[\"/bin/sh\", \"-c\", \"echo Hello world > /usr/share/message\"]"
],
"HttpGet": {
"Scheme": "HTTP",
"Path": "/usr/local",
"Port": 8080
},
"PeriodSeconds": 1
}
}
],
"EniInstanceId": "eni-bp14rzqi6fd8satm****",
"InitContainers": [
{
"VolumeMounts": [
{
"MountPropagation": "None",
"MountPath": "/usr/share/",
"ReadOnly": false,
"Name": "test-empty"
}
],
"Args": [
"['hello world']"
],
"Image": "nginx",
"Ports": [
{
"Protocol": "TCP",
"Port": 8888
}
],
"RestartCount": 5,
"ImagePullPolicy": "Always",
"PreviousState": {
"StartTime": "2021-12-02T15:00:00Z",
"FinishTime": "2021-12-02T15:01:00Z",
"DetailStatus": "working",
"State": "Terminated",
"Message": "Started container",
"Signal": 1,
"ExitCode": 0,
"Reason": "completed"
},
"WorkingDir": "/usr/test",
"Cpu": 1,
"CurrentState": {
"StartTime": "2021-12-02T15:00:00Z",
"FinishTime": "2021-12-02T15:01:00Z",
"DetailStatus": "working",
"State": "Running",
"Message": "Created container",
"Signal": 1,
"ExitCode": 0,
"Reason": "Started"
},
"Command": [
"[/bin/sh echo]"
],
"Ready": true,
"Gpu": 1,
"SecurityContext": {
"ReadOnlyRootFilesystem": true,
"RunAsUser": 1557,
"Capability": {
"Adds": [
"NET_ADMIN"
]
}
},
"Memory": 2,
"Name": "Init-xxx",
"EnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/local/bin",
"ValueFrom": {
"FieldRef": {
"FieldPath": "status.podIP"
}
}
}
]
}
],
"ContainerGroupId": "eci-bp1jrgfqqy54kg5hc****",
"TenantEniIp": "10.10.XX.XX",
"InstanceType": "ecs.g5.large",
"IntranetIp": "172.16.XX.XX",
"Ipv6Address": "2001:XXXX:4:4:4:4:4:4",
"RegionId": "cn-hangzhou",
"DnsConfig": {
"Searches": [
"svc.local.kubenetes"
],
"Options": [
{
"Value": "value",
"Name": "name"
}
],
"NameServers": [
"[10.2.*.*]"
]
},
"Volumes": [
{
"Type": "EmptyDirVolume",
"DiskVolumeDiskId": "d-xxxx",
"NFSVolumeReadOnly": false,
"ConfigFileVolumeConfigFileToPaths": [
{
"Path": "/usr/bin/",
"Content": "hello world"
}
],
"FlexVolumeFsType": "ntfs",
"FlexVolumeDriver": "flexvolume",
"DiskVolumeFsType": "xfs",
"FlexVolumeOptions": "[nolock,tcp,noresvport]",
"NFSVolumeServer": "0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com",
"NFSVolumePath": "/eci",
"Name": "test-empty",
"EmptyDirVolumeMedium": "Memory",
"EmptyDirVolumeSizeLimit": "256Mi"
}
],
"RamRoleName": "ram:PassRole",
"VSwitchId": "vsw-bp1vzjjflab6wvjox****",
"Cpu": 2,
"ExpiredTime": "2018-08-02T15:00:00Z",
"ResourceGroupId": "rg-8db03793gfrz****",
"ZoneId": "cn-hangzhou-h",
"ContainerGroupName": "test",
"EciSecurityContext": {
"Sysctls": [
{
"Value": "65536",
"Name": "kernel.msgmax"
}
]
},
"FailedTime": "2018-08-02T15:00:00Z",
"ComputeCategory": "economy",
"DnsPolicy": "None"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.MismatchInstanceType | The instanceId mismatch instance type. | The instance type is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.