Queries information about multiple elastic container instances (container groups) in batches.

Description

After elastic container instances are stopped, the underlying computing resources are reclaimed. The instance information is retained based on the following rules:

  • For elastic container instances that have run successfully and then stopped, the information about the latest 100 instances in all regions is retained and the information about other instances is deleted.
  • For elastic container instances that have failed to run and then stopped, the instance information is retained for only 24 hours.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeContainerGroups

The operation that you want to perform. Set the value to DescribeContainerGroups.

RegionId String Yes cn-hangzhou

The region ID of the elastic container instances.

ZoneId String No cn-hangzhou-h

The ID of the zone where the elastic container instances are deployed. If you do not specify this parameter, the system selects a zone.

This parameter is left empty by default.

VSwitchId String No vsw-bp1jrgfqqy54kg5hc****

The ID of the vSwitch to which the elastic container instances are connected.

NextToken String No d78f2dd8-5979-42fe-****-b16db43be5bc

The token used for the next query. If this parameter is empty, all results are returned.

Note You do not need to specify this parameter in the first request. From the second request, you can obtain the token from the result returned by the previous request.
Limit Integer No 20

The maximum number of resources to be returned. Default value: 20. Maximum value: 20.

Note The number of elastic container instances to be returned is no greater than this parameter value.
ContainerGroupIds String No ["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"]

The IDs of the elastic container instances in JSON format. You can specify up to 20 IDs.

ContainerGroupName String No test

The name of the elastic container instance.

Status String No Running

The status of the elastic container instance. Valid values:

  • Pending: The elastic container instance is being started.
  • Running: The elastic container instance is running.
  • Succeeded: The elastic container instance runs successfully.
  • Failed: The elastic container instance fails to run.
  • Scheduling: The elastic container instance is being created.
  • ScheduleFailed: The elastic container instance fails to be created.
  • Restarting: The elastic container instance is being restarted.
  • Updating: The elastic container instance is being updated.
  • Terminating: The elastic container instance is being terminated.
  • Expired: The elastic container instance expires.
ResourceGroupId String No rg-aekzh43v*****

The ID of the resource group to which the elastic container instances belong. If no resource group is specified when you create an elastic container instance, the instance is automatically added to the default resource group in your account.

WithEvent Boolean No true

Specifies whether to return event information.

Tag.N.Key String No name

The key of tag N of the elastic container instance.

Tag.N.Value String No test

The value of tag N of the elastic container instance.

Response parameters

Parameter Type Example Description
TotalCount Integer 1

The total number of elastic container instances.

NextToken String d78f2dd8-5979-42fe-****-b16db43be5bc

The token that is returned for the next query.

RequestId String 89945DD3-9072-47D0-A318-353284CFC7B3

The ID of the request.

ContainerGroups Array of ContainerGroup

Details about the elastic container instances.

Status String Running

The status of the elastic container instance. Valid values:

  • Pending: The elastic container instance is being started.
  • Running: The elastic container instance is running.
  • Succeeded: The elastic container instance runs successfully.
  • Failed: The elastic container instance fails to run.
  • Scheduling: The elastic container instance is being created.
  • ScheduleFailed: The elastic container instance fails to be created.
  • Restarting: The elastic container instance is being restarted.
  • Updating: The elastic container instance is being updated.
  • Terminating: The elastic container instance is being terminated.
  • Expired: The elastic container instance expires.
CreationTime String 2018-08-02T15:00:00Z

The time when the system created the elastic container instance after the system received the request. The time follows the RFC 3339 standard and must be in UTC.

VpcId String vpc-1vzjjflab6wvjox****

The ID of the virtual private cloud (VPC) to which the elastic container instances belong.

InternetIp String 192.0.XX.XX

The public IP address.

TenantSecurityGroupId String sg-xxx

This parameter is unavailable.

SecurityGroupId String sg-bp12ujq5zpxuyjfo3o8r

The ID of the security group.

HostAliases Array of HostAliase

The hostnames and IP addresses added for a container to the hosts file of the elastic container instance.

Hostnames Array of String ['hehe.com', 'haha.com']

The hostnames.

Ip String 192.0.XX.XX

The IP address of the elastic container instance.

Tags Array of Label

The key-value pairs of tags of the elastic container instances.

Key String name

The key of the tag.

Value String test-xh

The value of the tag.

Events Array of Event

The events of the elastic container instance. A maximum of 50 events can be returned.

Type String Normal

The type of the event. Valid values:

  • Normal
  • Warning
LastTimestamp String 2018-08-02T15:00:00Z

The time when the event ended.

Message String Started container

The event message.

Name String test-xxx

The name of the object to which the event belongs.

Reason String Created

The name of the event.

Count Integer 20

The number of the events.

FirstTimestamp String 2018-08-02T15:00:00Z

The time when the event started.

SucceededTime String 2019-12-11T04:33:42Z

The time when all containers in the elastic container instance exit. The time follows the RFC 3339 standard and must be in UTC.

SpotStrategy String NoSpot

The bidding policy for the pay-as-you-go instance. Default value: NoSpot. Valid values:

  • NoSpot: The instance is created as a regular pay-as-you-go instance.
  • SpotWithPriceLimit: The instance is created as a preemptible instance with a user-defined maximum hourly price.
  • SpotAsPriceGo: The instance is created as a preemptible instance whose price is based on the market price.
SpotPriceLimit double 0.025

The maximum hourly price for the preemptible instance.

This parameter is returned only when SpotStrategy is set to SpotWithPriceLimit.

EphemeralStorage Integer 20

The size of the temporary storage space. Unit: GiB.

TenantEniInstanceId String i-xxx

This parameter is unavailable.

Discount Integer 9

The discount that is applied.

RestartPolicy String Never

The restart policy of the elastic container instance. Valid values:

  • Never: never restarts the elastic container instance.
  • Always: always restarts the elastic container instance.
  • OnFailure: restarts the elastic container instance when the elastic container instance fails to run.
Memory Float 4.0

The memory size of the elastic container instance.

TenantVSwitchId String vsw-xxx

This parameter is unavailable.

Containers Array of Container

The information about containers in the elastic container instance.

LivenessProbe Object

The liveness probe of the container.

SuccessThreshold Integer 1

The minimum number of consecutive successes that must occur for the checks to be considered successful. Default value: 1. Set the value to 1.

InitialDelaySeconds Integer 10

The number of seconds to wait after the container was started before a check was started.

FailureThreshold Integer 3

The minimum number of consecutive failures that must occur for the check to be considered failed. Default value: 3.

TimeoutSeconds Integer 10

The timeout period of the check. Default value: 1. Minimum value: 1. Unit: seconds.

TcpSocket Object

The TCP socket method used to check the container.

Host String 1.2.3.4

The hostname.

Port Integer 80

The port number.

Execs Array of String ["/bin/sh", "-c", "echo Hello world > /usr/share/message"]

The command used to check the container.

HttpGet Object

The HTTP GET method used to check the container.

Scheme String HTTP

The protocol type of the HTTP GET requests.

Path String /usr/nginx/

The path to which HTTP GET requests were sent.

Port Integer 80

The port to which HTTP GET requests were sent.

PeriodSeconds Integer 5

The interval for checking the container. Default value: 10. Minimum value: 1. Unit: seconds.

Commands Array of String [/bin/sh echo]

The startup command of the container.

VolumeMounts Array of VolumeMount

The volumes mounted to the container.

MountPropagation String None

The mount propagation setting of the volume. Mount propagation allows the sharing of volumes that are mounted on a container to other containers in the same pod, or even to other pods on the same node. Valid values:

  • None: The volume mount does not receive subsequent mounts that are mounted to this volume or its subdirectories.
  • HostToCotainer: The volume mount receives all subsequent mounts that are mounted to this volume or its subdirectories.
  • Bidirectional: This value is similar to HostToCotainer. The volume mount receives all subsequent mounts that are mounted to this volume or its subdirectories. In addition, all volume mounts that are created by the container are propagated back to the instance and to all containers of all pods that use the same volume.
MountPath String /usr/share/

The directory to which the volume is mounted. Data under this directory is overwritten by the data on the volume.

ReadOnly Boolean false

Indicates whether the volumes are read-only.

Name String test-empty

The name of the volume.

Args Array of String ["hello"]

The startup arguments of the container.

Image String mysql

The image of the container.

Ports Array of Port

The exposed ports and protocols of the container.

Protocol String TCP

The protocol type.

Port Integer 8080

The port number. Valid values: 1 to 65535.

RestartCount Integer 0

The number of times that the container restarted.

ImagePullPolicy String Always

The image pulling policy. Valid values:

  • Always: Each time image pulling is performed.
  • IfNotPresent: Image pulling is performed as needed. On-premises images are used first. If no on-premises images are available, image pulling is performed.
  • Never: On-premises images are always used. Image pulling is not performed.
StdinOnce Boolean true

Indicates whether standard input streams are disconnected after a client is disconnected. If Stdin is set to true, standard input streams remain connected during multiple sessions. If Container.N.StdinOnce is set to true, standard input streams are connected after the container is started and remain idle until a client is connected to receive data. After the client is disconnected, streams are also disconnected and remain in the disconnected state until the container is started again.

Cpu Float 2.0

The number of vCPUs of the container.

PreviousState Object

The previous state of the container.

StartTime String 2018-08-02T15:00:00Z

The time when the container started to run.

FinishTime String 2018-08-02T15:00:00Z

The time when the container stopped running.

DetailStatus String working

The details of the container status.

State String Terminated

The container status. Valid values:

  • Waiting: The container is being started.
  • Running: The container is running.
  • Terminated: The container terminates running.
Message String Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)

The message about the container status.

Signal Integer 1

The code of the container status.

ExitCode Integer 0

The exit code of the container.

Reason String Completed

The reason why the container is in this state.

Tty Boolean false

Indicates whether interaction was enabled. Default value: false. If the Command parameter is a /bin/bash command, set this parameter to true.

WorkingDir String /usr/local/nginx

The working directory of the container.

CurrentState Object

The current container status.

StartTime String 2019-12-19T12:05:02Z

The time when the container started to run.

FinishTime String 2018-08-02T15:00:00Z

The time when the container stopped running.

DetailStatus String working

The details of the container status.

State String Terminated

The container status. Valid values:

  • Waiting
  • Running
  • Terminated
Message String Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)

The message about the container status.

Signal Integer 1

The code of the container status.

ExitCode Integer 0

The exit code of the container.

Reason String Started

The reason why the container is in this state.

Ready Boolean true

Indicates whether the container passed the readiness probe.

Gpu Integer 1

The number of GPUs.

SecurityContext Object

The security context of the elastic container instance.

ReadOnlyRootFilesystem Boolean true

Indicates whether the root file system is set to the read-only mode. The only valid value is true.

RunAsUser Long 1000

The user ID (UID) used to run the entry point of the container process.

Capability Object

The default capabilities of the container. Only the CPU and memory are supported.

Adds Array of String [NET_ADMIN]

The added permission. The only valid value is NET_ADMIN.

Memory Float 2.0

The memory size of the container.

Stdin Boolean true

Indicates whether the container allocates buffer resources to standard input streams while the container is running. If this parameter is not specified, an EoF error may occur. Default value: false.

Name String nginx

The name of the container.

EnvironmentVars Array of EnvironmentVar

The environment variables of the container.

Key String PATH

The name of the environment variable.

Value String /usr/bin/

The value of the environment variable.

ValueFrom Object

The source of the variable value. This parameter can be used only when the variable value is not specified.

FieldRef Object

The specified field.

FieldPath String status.podIP

The path of the field.

ReadinessProbe Object

The readiness probe of the container.

SuccessThreshold Integer 1

The minimum number of consecutive successes that must occur for the check to be considered successful. Default value: 1. The value must be 1.

InitialDelaySeconds Integer 5

The number of seconds after the container is started before probes are started.

FailureThreshold Integer 3

The minimum number of consecutive failures that must occur for the check to be considered failed. Default value: 3.

TimeoutSeconds Integer 5

The timeout period of the check. Default value: 1. Minimum value: 1. Unit: seconds.

TcpSocket Object

The TCP socket method used to check the container.

Host String 1.2.3.4

The IP address of the host.

Port Integer 8888

The port number.

Execs Array of String ["/bin/sh", "-c", "echo Hello world > /usr/share/message"]

The command used to check the container.

HttpGet Object

The HTTP GET method used to check the container.

Scheme String HTTP

The protocol type of the HTTP GET requests.

Path String /usr/local

The path to which HTTP GET requests were sent.

Port Integer 8080

The port to which HTTP GET requests were sent.

PeriodSeconds Integer 1

The interval for checking the container. Default value: 10. Minimum value: 1. Unit: seconds.

EniInstanceId String eni-bp14rzqi6fd8satm****

The ID of the ENI.

InitContainers Array of Container

The information about the init containers.

VolumeMounts Array of VolumeMount

The volumes mounted to the container.

MountPropagation String None

The mount propagation setting of the volume. Mount propagation allows the sharing of volumes that are mounted on one container to other containers in the same pod, or even to other pods on the same node. Valid values:

  • None: The volume mount does not receive subsequent mounts that are mounted to this volume or its subdirectories.
  • HostToCotainer: The volume mount receives all subsequent mounts that are mounted to this volume or its subdirectories.
  • Bidirectional: This value is similar to HostToCotainer. The volume mount receives all subsequent mounts that are mounted to this volume or its subdirectories. In addition, all volume mounts that are created by the container are propagated back to the instance and to all containers of all pods that use the same volume.
MountPath String /usr/share/

The directory to which the volume is mounted. Data under this directory is overwritten by the data on the volume.

ReadOnly Boolean false

Default value: False.

Name String test-empty

The name of the volume. The name is the same as the volume you selected when you purchased the container.

Args Array of String ['hello world']

The startup arguments of the container.

Image String nginx

The image of the container.

Ports Array of Port

The exposed ports and protocols of the container.

Protocol String TCP

The protocol type.

Port Integer 8888

The port number. Valid values: 1 to 65535.

RestartCount Integer 5

The number of times that the container restarted.

ImagePullPolicy String Always

The image pulling policy.

PreviousState Object

The previous state of the container.

StartTime String 2019-12-24T05:35:44Z

The time when the container started to run.

FinishTime String 2019-12-24T05:35:44Z

The time when the container stopped running.

DetailStatus String working

The details of the container status.

State String Terminated

The container status. Valid values: Waiting, Running, and Terminated.

Message String Started container

The message about the container status.

Signal Integer 1

The code of the container status.

ExitCode Integer 0

The exit code of the container.

Reason String completed

The reason why the container is in this state.

WorkingDir String /usr/test

The working directory of the container.

Cpu Float 1.0

The number of vCPUs.

CurrentState Object

The current container status.

StartTime String 2018-08-02T15:00:00Z

The time when the container started to run.

FinishTime String 2018-08-02T15:00:00Z

The time when the container stopped running.

DetailStatus String working

The details of the container status.

State String Running

The container status. Valid values: Waiting, Running, and Terminated.

Message String Created container

The event message.

Signal Integer 1

The code of the container status.

ExitCode Integer 0

The exit code of the container.

Reason String Started

The reason why the container is in this state.

Command Array of String [/bin/sh echo]

The startup command of the container.

Ready Boolean true

Indicates whether the container passed the readiness probe.

Gpu Integer 1

The number of GPUs.

SecurityContext Object

The security context of the container.

ReadOnlyRootFilesystem Boolean true

Indicates whether the root file system is set to the read-only mode. The only valid value is true.

RunAsUser Long 1557

The UID used to run the entry point of the container process.

Capability Object

The default capabilities of the container. Only the CPU and memory are supported.

Adds Array of String NET_ADMIN

The added permission. The only valid value is NET_ADMIN.

Memory Float 2.0

The memory size.

Name String Init-xxx

The name of the container.

EnvironmentVars Array of EnvironmentVar

The environment variables of the container.

Key String PATH

The name of the environment variable.

Value String /usr/local/bin

The value of the environment variable.

ValueFrom Object

The source of the variable value. This parameter can be used only when the variable value is not specified.

FieldRef Object

The specified field.

FieldPath String status.podIP

The path where the fields come from in the specified version. Only status.podIP is supported.

ContainerGroupId String eci-bp1jrgfqqy54kg5hc****

The ID of the instance.

TenantEniIp String 10.10.XX.XX

This parameter is unavailable.

InstanceType String ecs.g5.large

The instance type of the Elastic Compute Service (ECS) instance used to create the elastic container instance.

IntranetIp String 172.16.XX.XX

The internal IP address.

Ipv6Address String 2001:XXXX:4:4:4:4:4:4

The IPv6 address.

RegionId String cn-hangzhou

The region ID of the instance.

DnsConfig Object

The Domain Name System (DNS) settings.

Searches Array of String [svc.local.kubenetes]

The DNS search domains.

Options Array of Option

The objects. Each object is a name-value pair. The value is optional.

Value String value

The value of the object.

Name String name

The name of the object.

NameServers Array of String [10.2.*.*]

The IP addresses of DNS servers.

Volumes Array of Volume

The information about volumes.

Type String EmptyDirVolume

The type of the volume. Valid values:

  • EmptyDirVolume
  • NFSVolume
  • ConfigFileVolume
  • FlexVolume
DiskVolumeDiskId String d-xxxx

The ID of the DiskVolume.

NFSVolumeReadOnly Boolean false

Indicates whether the volumes are read-only.

ConfigFileVolumeConfigFileToPaths Array of ConfigFileVolumeConfigFileToPath

The paths to configuration files.

Path String /usr/bin/

The relative file path.

Content String hello world

The content of the configuration file. Maximum size: 32 KB.

FlexVolumeFsType String ntfs

The file system type of the FlexVolume. The default value is determined by the script of the FlexVolume.

FlexVolumeDriver String flexvolume

The name of the FlexVolume driver.

DiskVolumeFsType String xfs

The file system type of the DiskVolume.

FlexVolumeOptions String [nolock,tcp,noresvport]

The list of FlexVolume objects.

NFSVolumeServer String 0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com

The endpoint of the Network File System (NFS) server.

NFSVolumePath String /eci

The path to the NFS volume.

Name String test-empty

The name of the volume.

RamRoleName String ram:PassRole

The Resource Access Management (RAM) role of the elastic container instance. Elastic Container Instance and ECS share the same RAM role. For more information, see Use the instance RAM role by calling APIs.

VSwitchId String vsw-bp1vzjjflab6wvjox****

The ID of the vSwitch.

Cpu Float 2.0

The number of vCPUs of the elastic container instance.

ExpiredTime String 2018-08-02T15:00:00Z

The time when the elastic container instance failed to run due to overdue payments. The time follows the RFC 3339 standard and must be in UTC.

ResourceGroupId String rg-8db03793gfrz****

The ID of the resource group to which the instance belongs.

ZoneId String cn-hangzhou-h

The ID of the zone where the elastic container instances are deployed.

ContainerGroupName String test

The name of the instance.

EciSecurityContext Object

The security context of the elastic container instance.

Sysctls Array of Sysctl

The system information.

Value String 65536

The value of the variable.

Name String kernel.msgmax

The name of the variable.

FailedTime String 2018-08-02T15:00:00Z

The time when the instance failed to run. The time follows the RFC 3339 standard and must be in UTC.

Examples

Sample requests

https://eci.aliyuncs.com/?Action=DescribeContainerGroups
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeContainerGroupsResponse>
    <TotalCount>1</TotalCount>
    <NextToken/>
    <RequestId>CAABE95E-ED57-56CC-B361-48566745A3CC</RequestId>
    <ContainerGroups>
        <Discount>10</Discount>
        <Memory>4</Memory>
        <Containers>
            <EnvironmentVars>
                <ValueFrom>
                    <FieldRef/>
                </ValueFrom>
                <Value>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</Value>
                <Key>PATH</Key>
            </EnvironmentVars>
            <EnvironmentVars>
                <ValueFrom>
                    <FieldRef/>
                </ValueFrom>
                <Value>1.15.10-1~stretch</Value>
                <Key>NGINX_VERSION</Key>
            </EnvironmentVars>
            <EnvironmentVars>
                <ValueFrom>
                    <FieldRef/>
                </ValueFrom>
                <Value>1.15.10.0.3.0-1~stretch</Value>
                <Key>NJS_VERSION</Key>
            </EnvironmentVars>
            <ReadinessProbe>
                <HttpGet/>
                <TcpSocket/>
            </ReadinessProbe>
            <Memory>0</Memory>
            <LivenessProbe>
                <HttpGet/>
                <TcpSocket/>
            </LivenessProbe>
            <Cpu>0</Cpu>
            <Image>registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:latest</Image>
            <Gpu>0</Gpu>
            <PreviousState>
                <FinishTime/>
                <State/>
                <StartTime/>
            </PreviousState>
            <Name>container-1</Name>
            <RestartCount>0</RestartCount>
            <Ready>true</Ready>
            <WorkingDir/>
            <ImagePullPolicy>IfNotPresent</ImagePullPolicy>
            <CurrentState>
                <FinishTime/>
                <State>Running</State>
                <StartTime>2021-09-08T02:49:52Z</StartTime>
            </CurrentState>
            <SecurityContext>
                <Capability/>
            </SecurityContext>
        </Containers>
        <Cpu>2</Cpu>
        <EciSecurityContext/>
        <FailedTime/>
        <IntranetIp>172.16.XX.XX</IntranetIp>
        <ContainerGroupName>container-group-1631069337474</ContainerGroupName>
        <DnsConfig/>
        <InternetIp/>
        <ExpiredTime/>
        <InstanceType>ecs.c5.large</InstanceType>
        <SpotStrategy>SpotAsPriceGo</SpotStrategy>
        <Status>Running</Status>
        <ZoneId>cn-beijing-g</ZoneId>
        <SucceededTime/>
        <SecurityGroupId>sg-2ze81zoc3yl7a3we****</SecurityGroupId>
        <VSwitchId>vsw-2ze23nqzig8inprou****</VSwitchId>
        <RestartPolicy>Always</RestartPolicy>
        <VpcId>vpc-2zeghwzptn5zii0w7****</VpcId>
        <CreationTime>2021-09-08T02:49:40Z</CreationTime>
        <EniInstanceId>eni-2ze80ferll5c3wjk****</EniInstanceId>
        <ContainerGroupId>eci-2zeg7owsmm74shw8****</ContainerGroupId>
        <RegionId>cn-beijing</RegionId>
    </ContainerGroups>
</DescribeContainerGroupsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "TotalCount" : 1,
  "NextToken" : "",
  "RequestId" : "CAABE95E-ED57-56CC-B361-48566745A3CC",
  "ContainerGroups" : [ {
    "Discount" : 10,
    "Memory" : 4,
    "Containers" : [ {
      "EnvironmentVars" : [ {
        "ValueFrom" : {
          "FieldRef" : { }
        },
        "Value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
        "Key" : "PATH"
      }, {
        "ValueFrom" : {
          "FieldRef" : { }
        },
        "Value" : "1.15.10-1~stretch",
        "Key" : "NGINX_VERSION"
      }, {
        "ValueFrom" : {
          "FieldRef" : { }
        },
        "Value" : "1.15.10.0.3.0-1~stretch",
        "Key" : "NJS_VERSION"
      } ],
      "ReadinessProbe" : {
        "HttpGet" : { },
        "TcpSocket" : { }
      },
      "Memory" : 0,
      "LivenessProbe" : {
        "HttpGet" : { },
        "TcpSocket" : { }
      },
      "Cpu" : 0,
      "Ports" : [ ],
      "Image" : "registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:latest",
      "Gpu" : 0,
      "PreviousState" : {
        "FinishTime" : "",
        "State" : "",
        "StartTime" : ""
      },
      "Name" : "container-1",
      "RestartCount" : 0,
      "Ready" : true,
      "WorkingDir" : "",
      "VolumeMounts" : [ ],
      "ImagePullPolicy" : "IfNotPresent",
      "CurrentState" : {
        "FinishTime" : "",
        "State" : "Running",
        "StartTime" : "2021-09-08T02:49:52Z"
      },
      "SecurityContext" : {
        "Capability" : { }
      }
    } ],
    "Cpu" : 2,
    "EciSecurityContext" : { },
    "FailedTime" : "",
    "IntranetIp" : "172.16.XX.XX",
    "ContainerGroupName" : "container-group-1631069337474",
    "Volumes" : [ ],
    "DnsConfig" : { },
    "InternetIp" : "",
    "Events" : [ ],
    "ExpiredTime" : "",
    "InstanceType" : "ecs.c5.large",
    "SpotStrategy" : "SpotAsPriceGo",
    "Tags" : [ ],
    "Status" : "Running",
    "InitContainers" : [ ],
    "ZoneId" : "cn-beijing-g",
    "SucceededTime" : "",
    "SecurityGroupId" : "sg-2ze81zoc3yl7a3we****",
    "VSwitchId" : "vsw-2ze23nqzig8inprou****",
    "RestartPolicy" : "Always",
    "VpcId" : "vpc-2zeghwzptn5zii0w7****",
    "CreationTime" : "2021-09-08T02:49:40Z",
    "EniInstanceId" : "eni-2ze80ferll5c3wjk****",
    "ContainerGroupId" : "eci-2zeg7owsmm74shw8****",
    "RegionId" : "cn-beijing"
  } ]
}

Error codes

For a list of error codes, visit the API Error Center.