All Products
Search
Document Center

Elastic High Performance Computing:DescribeServerlessJobs

Last Updated:Sep 10, 2026

Queries the details of a serverless job by job ID or subtask ID (for array jobs). Currently, only a single job ID or a single subtask ID can be specified.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ehpc:DescribeServerlessJobs

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The cluster ID.

You can call ListClusters to obtain the cluster ID.

ehpc-hz-FYUr32****

JobIds

array

Yes

The list of serverless job IDs or subtask IDs (for array jobs).

Note
  • If the serverless job is an array job, only subtask IDs are supported. The subtask ID format is: _. For example, 10_3 indicates the subtask with index 3 in the array job with ID 10.

  • Currently, only one element can be specified in this list.

string

No

The serverless job ID or subtask ID (for array jobs).

5

Response elements

Element

Type

Description

Example

object

TotalCount

integer

The total number of entries returned under the request conditions.

1

RequestId

string

The request ID.

04F0F334-1335-436C-A1D7-6C044FE73368

JobInfos

array<object>

The list of Serverless job details.

array<object>

JobId

string

The serverless job ID or subtask ID (for array jobs).

5

JobName

string

The name of the Serverless job.

testjob

State

string

The status of the Serverless job. Valid values:

  • Pending: The job is queued.

  • Initing: The job is being initialized.

  • Running: The job is running.

  • Succeeded: The job is completed.

  • Canceled: The job is canceled.

  • Failed: The job failed.

Running

Priority

integer

The scheduling priority of the Serverless job.

9

Queue

string

The name of the queue that runs the Serverless job.

comp

User

string

The username that runs the Serverless job.

testuser

SubmitTime

integer

The timestamp when the Serverless job was submitted.

1647423718

StartTime

integer

The timestamp when the Serverless job started.

1647427667

EndTime

integer

The timestamp when the Serverless job ended.

1662016121

LastModifyTime

integer

The timestamp when the Serverless job was last modified.

1663831441000

IsArrayJob

boolean

Indicates whether the job is an array job.

false

ArrayProperties

object

The array job properties.

IndexStart

integer

The start value of the array job index.

1

IndexEnd

integer

The end value of the array job index.

5

IndexStep

integer

The interval of the array job index.

2

ContainerGroups

array<object>

The list of container group instances for the Serverless job.

array<object>

ContainerGroupId

string

The container group instance ID.

eci-bp1jrgfqqy54kg5hc****

ContainerGroupName

string

The container group instance name.

test

Status

string

The instance status. Valid values:

  • Pending: The instance is starting.

  • Running: The instance is running.

  • Succeeded: The instance ran successfully.

  • Failed: The instance failed to run.

  • Scheduling: The instance is being created.

  • ScheduleFailed: The instance failed to be created.

  • Restarting: The instance is restarting.

  • Updating: The instance is being updated.

  • Terminating: The instance is being terminated.

  • Expired: The instance expired.

Running

InstanceType

string

The specified ECS instance type.

ecs.g5.large

SpotStrategy

string

The bidding policy for the instance. Valid values:

  • NoSpot (default): The instance is a regular pay-as-you-go instance.

  • SpotWithPriceLimit: The instance is a spot instance with a maximum hourly price.

  • SpotAsPriceGo: The system automatically bids at the current market price.

NoSpot

SpotPriceLimit

number

The maximum hourly price for the spot instance.

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

0.025

Cpu

number

The number of vCPUs of the container.

2

Memory

number

The instance-level memory size. Unit: GiB.

4.0

Containers

array<object>

The list of containers in the container group.

array<object>

Args

array

The container startup arguments.

string

The container startup arguments.

hello.py

Commands

array

The container startup commands.

string

The container startup commands.

/usr/bin/python

Cpu

number

The number of vCPUs of the container.

2.0

CurrentState

object

The current state of the container.

DetailStatus

string

The detailed status of the container.

working

ExitCode

integer

The exit code of the container.

0

FinishTime

string

The time when the container finished running. The time follows the RFC 3339 format and is in UTC.

2018-08-02T15:00:00Z

Message

string

The container status message.

Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)

Reason

string

The reason for the container status.

Started

Signal

integer

The container status signal.

1

StartTime

string

The time when the container started running. The time follows the RFC 3339 format and is in UTC.

2019-12-19T12:05:02Z

State

string

The job status. Valid values:

  • Waiting

  • Running

  • Terminated

Terminated

EnvironmentVars

array<object>

The environment variables.

array<object>

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. If the value is not empty, this parameter cannot be used.

FieldRef

object

The specified field.

FieldPath

string

The path of the field.

status.podIP

Gpu

integer

The number of GPUs.

1

Image

string

The container image.

HPL

ImagePullPolicy

string

The image pull policy. Valid values:

  • Always: Always pulls the image. The image is pulled each time.

  • IfNotPresent: Pulls the image only when needed. The local image is used first. If no local image is available, the image is pulled.

  • Never: Never pulls the image. Only the local image is used.

Always

LivenessProbe

object

The liveness probe.

Execs

array

The execution commands.

string

The execution commands.

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

FailureThreshold

integer

The minimum number of consecutive failures after a successful check for the check to be considered failed. Default value: 3.

3

HttpGet

object

HttpGet。

Path

string

The path for the HTTP GET check.

/usr/nginx/

Port

integer

The port for the HTTP GET check.

80

Scheme

string

HTTP or HTTPS.

HTTP

InitialDelaySeconds

integer

The number of seconds after the container starts before the check begins.

10

PeriodSeconds

integer

The interval at which the check is performed. Default value: 10 seconds. Minimum value: 1 second.

5

SuccessThreshold

integer

The minimum number of consecutive successes after a failed check for the check to be considered successful. Default value: 1. The current value must be 1.

1

TcpSocket

object

TcpSocket。

Host

string

The hostname.

1.2.3.4

Port

integer

The port number.

80

TimeoutSeconds

integer

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

10

Memory

number

The instance-level memory size. Unit: GiB.

4.0

Name

string

The container name.

HPL

Ports

array<object>

The exposed ports and protocols.

object

Port

integer

The port number. Valid values: 1 to 65535.

8080

Protocol

string

The protocol type.

TCP

PreviousState

object

The previous state.

DetailStatus

string

The detailed status.

working

ExitCode

integer

The exit code of the container.

0

FinishTime

string

The time when the container finished running. The time follows the RFC 3339 format and is in UTC.

2018-08-02T15:00:00Z

Message

string

The container status message.

Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)

Reason

string

The reason for the container status.

Completed

Signal

integer

The container status signal.

1

StartTime

string

The time when the container started running. The time follows the RFC 3339 format and is in UTC.

2018-08-02T15:00:00Z

State

string

The container status. Valid values:

  • Waiting: The container is starting.

  • Running: The container is running.

  • Terminated: The container is terminated.

Terminated

ReadinessProbe

object

The readiness probe, which checks whether the container is ready to serve requests.

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" ]

FailureThreshold

integer

The threshold for the number of consecutive check failures after the last successful check before the check is considered failed. Default value: 3.

3

HttpGet

object

The health check that uses HTTP requests.

Path

string

The path for the HTTP GET check.

/usr/local

Port

integer

The port number for the HTTP GET health check.

8080

Scheme

string

HTTP/HTTPS。

HTTP

InitialDelaySeconds

integer

The number of seconds after the container starts before the check begins.

10

PeriodSeconds

integer

The interval at which the check is performed. Default value: 10. Minimum value: 1. Unit: seconds.

5

SuccessThreshold

integer

The threshold for the number of consecutive successful checks after the last failed check before the check is considered successful. Default value: 1. The current value must be 1.

1

TcpSocket

object

The health check that uses TCP sockets.

Host

string

Host。

1.2.3.4

Port

integer

The port number.

8888

TimeoutSeconds

integer

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

1

Ready

boolean

Indicates whether the container has passed its readiness probe.

true

RestartCount

integer

The number of restarts.

5

SecurityContext

object

The security context in which the container runs.

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

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.

1558

Stdin

boolean

Specifies whether the container runtime allocates a buffer for standard input. If this parameter is not set, reads from standard input in the container result in EOF. Default value: false.

true

StdinOnce

boolean

When standard input is set to true, the standard input stream remains in the enabling status across multiple attach sessions. If StdinOnce is set to true, standard input is opened when the container starts and remains empty until the first client attaches to it. It then stays open and can accept data until the client disconnects, at which point standard input is in shutdown and remains in shutdown until the container restarts.

true

Tty

boolean

Specifies whether to enable interaction. Default value: false. For example, set this parameter to true when Command is set to /bin/bash.

false

VolumeMounts

array<object>

The information about mounted volumes.

object

The information about mounted volumes.

MountPath

string

The mount directory. The content in the mount directory of the container is overwritten by the content of the volume.

/usr/share/

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: The volume does not sense any subsequent mount operations on this volume or its subdirectories.

  • HostToContainer: The volume senses subsequent mount operations on this volume or its subdirectories.

  • Bidirectional: Similar to HostToContainer, the volume senses mount operations. In addition, the volume is propagated back to the host and all containers of all pods that use the same volume.

None

Name

string

The volume name.

test-empty

ReadOnly

boolean

Indicates whether the volume is read-only.

false

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

WorkingDir

string

The working directory.

/usr/local/nginx

Volumes

array<object>

The volume information.

array<object>

The volume information.

ConfigFileVolumeConfigFileToPaths

array<object>

The list of configuration file paths.

object

The list of configuration file paths.

Content

string

The content of the configuration file (32 KB).

hello world

Path

string

The relative file path.

/usr/bin/

DiskVolumeDiskId

string

The ID of the DiskVolume.

d-xxxx

DiskVolumeFsType

string

The volume type.

xfs

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: memory is used.

  • LocalRaid0: local disks are formed into RAID 0. This value applies only to scenarios in which local disk instances are created and local disks are mounted. For more information, see Create a local disk instance.

Memory

EmptyDirVolumeSizeLimit

string

The size of the EmptyDir volume. Specify the unit, such as Gi or Mi.

256Mi

FlexVolumeDriver

string

The driver name used for FlexVolume.

flexvolume

FlexVolumeFsType

string

The type of the mounted file system. The default value depends on the FlexVolume script.

ntfs

FlexVolumeOptions

string

The list of FlexVolume object options.

[nolock,tcp,noresvport]

NFSVolumePath

string

The NFS volume path.

/eci

NFSVolumeReadOnly

boolean

Indicates whether the volume is read-only.

false

NFSVolumeServer

string

The NFS server address.

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

Name

string

The volume name.

test-empty

Type

string

The volume type. Valid values:

  • EmptyDirVolume

  • NFSVolume

  • ConfigFileVolume

  • FlexVolume

EmptyDirVolume

Events

array<object>

The event information. Maximum: 50.

object

The event information. Maximum: 50.

Count

integer

The number of events.

20

FirstTimestamp

string

The start time of the event.

2018-08-02T15:00:00Z

LastTimestamp

string

The end time of the event.

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

Type

string

The event type. Valid values:

  • Normal

  • Warning

Normal

CreationTime

string

The system creation time after the request is received. The time follows the RFC 3339 standard and is displayed in UTC.

2018-08-02T15:00:00Z

SucceededTime

string

The time when all containers exited successfully. The time follows the RFC 3339 standard and is displayed in UTC.

2019-12-11T04:33:42Z

ExpiredTime

string

The time when the instance failed due to an overdue payment. The time follows the RFC 3339 standard and is displayed in UTC.

2018-08-02T15:00:00Z

FailedTime

string

The time when the instance failed. The time follows the RFC 3339 standard and is displayed in UTC.

2018-08-02T15:00:00Z

Discount

integer

The discount.

9

DnsConfig

object

The DNS configuration.

NameServers

array

The list of DNS server IP addresses.

string

The IP address.

[10.2.*.*]

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.

Name

string

The object variable name.

name

Value

string

The object variable value.

value

Searches

array

The list of DNS search domains.

string

The DNS search domain.

svc.local.kubenetes

EciSecurityContext

object

The security context in which the container group runs.

Sysctls

array<object>

The sysctl parameters.

object

The sysctl parameters.

Name

string

The sysctl parameter name.

kernel.msgmax

Value

string

The sysctl parameter value.

65536

EniInstanceId

string

The elastic network interfaces (ENIs) instance ID. This is the ID of the network interface controller (NIC) bound to the container group.

eni-bp14rzqi6fd8satm****

EphemeralStorage

integer

The size of the ephemeral storage. Unit: GiB.

20

HostAliases

array<object>

The custom hostname mappings for a container in the instance.

object

The custom hostname mappings for 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

InitContainers

array<object>

The init containers.

array<object>

The init containers.

Args

array

The startup arguments.

string

The startup arguments.

['hello world']

Command

array

The startup command.

string

The startup command.

[/bin/sh echo]

Cpu

integer

The number of vCPUs.

1.0

CurrentState

object

The current state.

DetailStatus

string

The detailed status.

working

ExitCode

integer

The exit code of the container.

0

FinishTime

string

The time when the container finished running. The time follows the RFC 3339 format and is in UTC.

2018-08-02T15:00:00Z

Message

string

The event message.

Created container

Reason

string

The reason for the container status.

Started

Signal

integer

The container status signal.

1

StartTime

string

The time when the container started running. The time follows the RFC 3339 format and is in UTC.

2018-08-02T15:00:00Z

State

string

The container state. Valid values:

  • Waiting

  • Running

  • Terminated

Running

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. If the value is not empty, this parameter cannot be used.

FieldRef

object

The specified field.

FieldPath

string

The path of the field to select in the specified version. Currently, only status.podIP is supported.

status.podIP

Gpu

integer

The number of GPUs.

1

Image

string

The image.

nginx

ImagePullPolicy

string

The image pull policy.

Always

Memory

integer

The memory size of the init container. Unit: GiB.

2.0

Name

string

The container name.

Init-xxx

Ports

array<object>

The exposed ports and protocols.

object

The exposed ports and protocols.

Port

integer

The port number. Valid values: 1 to 65535.

8888

Protocol

string

The protocol type.

TCP

PreviousState

object

The previous state.

DetailStatus

string

The detailed status.

working

ExitCode

integer

The exit code of the container.

0

FinishTime

string

The time when the container finished running. The time follows the RFC 3339 format and is in UTC.

2019-12-24T05:35:44Z

Message

string

The container status message.

Started container

Reason

string

The reason for the container status.

completed

Signal

integer

The container status signal.

1

StartTime

string

The time when the container started running. The time follows the RFC 3339 format and is in UTC.

2019-12-24T05:35:44Z

State

string

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

Terminated

Ready

boolean

Indicates whether the container has passed its readiness probe.

true

RestartCount

integer

The number of restarts.

5

SecurityContext

object

The security context in which the container runs.

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

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

VolumeMounts

array<object>

The volumes mounted to the init container.

object

The volumes mounted to the init container.

MountPath

string

The mount directory. The content in the mount directory of the container is overwritten by the content of the volume.

/usr/share/

MountPropagation

string

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

  • None: The volume does not sense any subsequent mounts performed on this volume or its subdirectories.

  • HostToCotainer: The volume senses subsequent mounts performed on this volume or its subdirectories.

  • Bidirectional: Similar to HostToCotainer, the volume senses mount operations. In addition, the volume is propagated back to the host and all containers of all pods that use the same volume.

Default value: None.

None

Name

string

The volume name. The value is the same as the Name value in Volume.

test-empty

ReadOnly

boolean

Default value: False.

false

WorkingDir

string

The working directory.

/usr/test

InternetIp

string

The public IP address.

192.0.XX.XX

IntranetIp

string

The private IP address.

172.16.XX.XX

Ipv6Address

string

The IPv6 address.

2001:XXXX:4:4:4:4:4:4

RamRoleName

string

The name of the instance RAM role. Elastic Container Instance (ECI) and Elastic Compute Service (ECS) share the instance RAM role. For more information, see Instance RAM roles.

ram:PassRole

RegionId

string

The region ID of the instance.

cn-hangzhou

ResourceGroupId

string

The ID of the resource group to which the instance belongs. If no resource group is specified when the instance is created, the instance is automatically added to the default resource group under the account.

rg-aekzh43v*****

RestartPolicy

string

The restart policy of the instance. Valid values:

  • Always: Always restarts.

  • Never: Never restarts.

  • OnFailure: Restarts on failure.

Never

SecurityGroupId

string

The security group ID.

sg-bp12ujq5zpxuyjfo3o8r

Tags

array<object>

The instance label information.

object

The instance label information.

Key

string

The tag key.

name

Value

string

The tag value.

test-xh

TenantEniInstanceId

string

This parameter is not available for use.

i-xxx

TenantEniIp

string

This parameter is not available for use.

10.10.XX.XX

TenantSecurityGroupId

string

This parameter is not available for use.

sg-xxx

TenantVSwitchId

string

This parameter is not available for use.

vsw-xxx

VSwitchId

string

The vSwitch ID.

vsw-bp1vzjjflab6wvjox****

VpcId

string

The ID of the VPC to which the instance belongs.

vpc-1vzjjflab6wvjox****

ZoneId

string

The zone to which the instance belongs.

cn-hangzhou-h

Examples

Success response

JSON format

{
  "TotalCount": 1,
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "JobInfos": [
    {
      "JobId": "5",
      "JobName": "testjob",
      "State": "Running",
      "Priority": 9,
      "Queue": "comp",
      "User": "testuser",
      "SubmitTime": 1647423718,
      "StartTime": 1647427667,
      "EndTime": 1662016121,
      "LastModifyTime": 1663831441000,
      "IsArrayJob": false,
      "ArrayProperties": {
        "IndexStart": 1,
        "IndexEnd": 5,
        "IndexStep": 2
      },
      "ContainerGroups": [
        {
          "ContainerGroupId": "eci-bp1jrgfqqy54kg5hc****",
          "ContainerGroupName": "test",
          "Status": "Running",
          "InstanceType": "ecs.g5.large",
          "SpotStrategy": "NoSpot",
          "SpotPriceLimit": 0.025,
          "Cpu": 2,
          "Memory": 4,
          "Containers": [
            {
              "Args": [
                "hello.py"
              ],
              "Commands": [
                "/usr/bin/python"
              ],
              "Cpu": 2,
              "CurrentState": {
                "DetailStatus": "working",
                "ExitCode": 0,
                "FinishTime": "2018-08-02T15:00:00Z",
                "Message": "Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)",
                "Reason": "Started",
                "Signal": 1,
                "StartTime": "2019-12-19T12:05:02Z\n",
                "State": "Terminated\n"
              },
              "EnvironmentVars": [
                {
                  "Key": "PATH\n",
                  "Value": "/usr/bin/\n",
                  "ValueFrom": {
                    "FieldRef": {
                      "FieldPath": "status.podIP"
                    }
                  }
                }
              ],
              "Gpu": 1,
              "Image": "HPL",
              "ImagePullPolicy": "Always",
              "LivenessProbe": {
                "Execs": [
                  "[\"/bin/sh\", \"-c\", \"echo Hello world > /usr/share/message\"]\n"
                ],
                "FailureThreshold": 3,
                "HttpGet": {
                  "Path": "/usr/nginx/\n",
                  "Port": 80,
                  "Scheme": "HTTP"
                },
                "InitialDelaySeconds": 10,
                "PeriodSeconds": 5,
                "SuccessThreshold": 1,
                "TcpSocket": {
                  "Host": "1.2.3.4\n",
                  "Port": 80
                },
                "TimeoutSeconds": 10
              },
              "Memory": 4,
              "Name": "HPL",
              "Ports": [
                {
                  "Port": 8080,
                  "Protocol": "TCP"
                }
              ],
              "PreviousState": {
                "DetailStatus": "working",
                "ExitCode": 0,
                "FinishTime": "2018-08-02T15:00:00Z",
                "Message": "Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)",
                "Reason": "Completed",
                "Signal": 1,
                "StartTime": "2018-08-02T15:00:00Z",
                "State": "Terminated"
              },
              "ReadinessProbe": {
                "Execs": [
                  "[\n      \"/bin/sh\",\n      \"-c\",\n      \"echo Hello world > /usr/share/message\"\n]"
                ],
                "FailureThreshold": 3,
                "HttpGet": {
                  "Path": "/usr/local",
                  "Port": 8080,
                  "Scheme": "HTTP"
                },
                "InitialDelaySeconds": 10,
                "PeriodSeconds": 5,
                "SuccessThreshold": 1,
                "TcpSocket": {
                  "Host": "1.2.3.4",
                  "Port": 8888
                },
                "TimeoutSeconds": 1
              },
              "Ready": true,
              "RestartCount": 5,
              "SecurityContext": {
                "Capability": {
                  "Adds": [
                    "NET_ADMIN"
                  ]
                },
                "ReadOnlyRootFilesystem": true,
                "RunAsUser": 1558
              },
              "Stdin": true,
              "StdinOnce": true,
              "Tty": false,
              "VolumeMounts": [
                {
                  "MountPath": "/usr/share/",
                  "MountPropagation": "None",
                  "Name": "test-empty",
                  "ReadOnly": false,
                  "SubPath": "/usr/sub"
                }
              ],
              "WorkingDir": "/usr/local/nginx"
            }
          ],
          "Volumes": [
            {
              "ConfigFileVolumeConfigFileToPaths": [
                {
                  "Content": "hello world",
                  "Path": "/usr/bin/"
                }
              ],
              "DiskVolumeDiskId": "d-xxxx",
              "DiskVolumeFsType": "xfs",
              "EmptyDirVolumeMedium": "Memory",
              "EmptyDirVolumeSizeLimit": "256Mi",
              "FlexVolumeDriver": "flexvolume",
              "FlexVolumeFsType": "ntfs",
              "FlexVolumeOptions": "[nolock,tcp,noresvport]",
              "NFSVolumePath": "/eci",
              "NFSVolumeReadOnly": false,
              "NFSVolumeServer": "0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com",
              "Name": "test-empty",
              "Type": "EmptyDirVolume"
            }
          ],
          "Events": [
            {
              "Count": 20,
              "FirstTimestamp": "2018-08-02T15:00:00Z",
              "LastTimestamp": "2018-08-02T15:00:00Z\n",
              "Message": "Started container",
              "Name": "test-xxx",
              "Reason": "Created",
              "Type": "Normal"
            }
          ],
          "CreationTime": "2018-08-02T15:00:00Z",
          "SucceededTime": "2019-12-11T04:33:42Z",
          "ExpiredTime": "2018-08-02T15:00:00Z",
          "FailedTime": "2018-08-02T15:00:00Z",
          "Discount": 9,
          "DnsConfig": {
            "NameServers": [
              "[10.2.*.*]"
            ],
            "Options": [
              {
                "Name": "name",
                "Value": "value"
              }
            ],
            "Searches": [
              "svc.local.kubenetes"
            ]
          },
          "EciSecurityContext": {
            "Sysctls": [
              {
                "Name": "kernel.msgmax",
                "Value": "65536"
              }
            ]
          },
          "EniInstanceId": "eni-bp14rzqi6fd8satm****",
          "EphemeralStorage": 20,
          "HostAliases": [
            {
              "Hostnames": [
                "['hehe.com', 'haha.com']"
              ],
              "Ip": "192.0.XX.XX"
            }
          ],
          "InitContainers": [
            {
              "Args": [
                "['hello world']"
              ],
              "Command": [
                "[/bin/sh echo]"
              ],
              "Cpu": 1,
              "CurrentState": {
                "DetailStatus": "working",
                "ExitCode": 0,
                "FinishTime": "2018-08-02T15:00:00Z",
                "Message": "Created container",
                "Reason": "Started",
                "Signal": 1,
                "StartTime": "2018-08-02T15:00:00Z",
                "State": "Running"
              },
              "EnvironmentVars": [
                {
                  "Key": "PATH",
                  "Value": "/usr/local/bin",
                  "ValueFrom": {
                    "FieldRef": {
                      "FieldPath": "status.podIP"
                    }
                  }
                }
              ],
              "Gpu": 1,
              "Image": "nginx",
              "ImagePullPolicy": "Always",
              "Memory": 2,
              "Name": "Init-xxx",
              "Ports": [
                {
                  "Port": 8888,
                  "Protocol": "TCP"
                }
              ],
              "PreviousState": {
                "DetailStatus": "working",
                "ExitCode": 0,
                "FinishTime": "2019-12-24T05:35:44Z",
                "Message": "Started container",
                "Reason": "completed",
                "Signal": 1,
                "StartTime": "2019-12-24T05:35:44Z",
                "State": "Terminated"
              },
              "Ready": true,
              "RestartCount": 5,
              "SecurityContext": {
                "Capability": {
                  "Adds": [
                    "NET_ADMIN"
                  ]
                },
                "ReadOnlyRootFilesystem": true,
                "RunAsUser": 1557
              },
              "VolumeMounts": [
                {
                  "MountPath": "/usr/share/",
                  "MountPropagation": "None",
                  "Name": "test-empty",
                  "ReadOnly": false
                }
              ],
              "WorkingDir": "/usr/test"
            }
          ],
          "InternetIp": "192.0.XX.XX",
          "IntranetIp": "172.16.XX.XX",
          "Ipv6Address": "2001:XXXX:4:4:4:4:4:4",
          "RamRoleName": "ram:PassRole",
          "RegionId": "cn-hangzhou",
          "ResourceGroupId": "rg-aekzh43v*****",
          "RestartPolicy": "Never",
          "SecurityGroupId": "sg-bp12ujq5zpxuyjfo3o8r",
          "Tags": [
            {
              "Key": "name",
              "Value": "test-xh"
            }
          ],
          "TenantEniInstanceId": "i-xxx",
          "TenantEniIp": "10.10.XX.XX",
          "TenantSecurityGroupId": "sg-xxx",
          "TenantVSwitchId": "vsw-xxx",
          "VSwitchId": "vsw-bp1vzjjflab6wvjox****",
          "VpcId": "vpc-1vzjjflab6wvjox****",
          "ZoneId": "cn-hangzhou-h"
        }
      ]
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParams The specified parameter %s is invalid. The specified parameter %s is invalid.
400 NotEnabled You have not enabled this service You have not enabled this service
500 UnknownError An unknown error occurred. An unknown error occurred.
404 ClusterNotFound The specified cluster does not exist. The specified instance does not exist.
404 ManagerNotFound The manager nodes do not exist or their status is abnormal. The manager nodes do not exist or their status is abnormal.
503 ServiceUnavailable The request has failed due to a temporary failure of the server The request has failed due to a temporary failure of the server.
406 EcsError An error occurred while calling the ECS API operation. ECS API call error. %s
406 DbError A database service error occurred. Database request failed.
406 RedisError A Redis service error occurred. Redis request failed.
406 AliyunError An Alibaba Cloud product error occurred. Alibaba Cloud product error. %s
406 AgentError The agent service request failed: %s Operation unsuccessful: %s
407 NotAuthorized You are not authorized by RAM for this request. The request is not authorized by RAM.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.