All Products
Search
Document Center

Elastic High Performance Computing:DescribeServerlessJobs

Last Updated:Apr 09, 2024

Queries the details of a serverless job by job ID or subtask ID (array job). You can specify only a single job ID or a single subtask ID at a time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the E-HPC cluster.

You can call the ListClusters operation to query the cluster ID.

ehpc-hz-FYUr32****
JobIdsarrayYes

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

Note
  • If the serverless job is an array job, you can specify only the subtask ID. Specify the subtask ID in the format of <array job ID>_< subtask index>. For example, 10_3 indicates the subtask whose index is 3 in the array job whose ID is 10.

  • You can specify only a single ID in one request.

stringYes

The ID of the serverless job or the subtask (array job).

5

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of entries returned.

1
RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE73368
JobInfosobject []

The list of detailed information about the serverless job.

JobIdstring

The ID of the serverless job or the subtask (array job).

5
JobNamestring

The name of the serverless job.

testjob
Statestring

The status of the serverless job. Valid values:

  • Pending
  • Initing
  • Running
  • Succeeded
  • Canceled
  • Failed
Running
Prioritylong

The scheduling priority of the serverless job.

9
Queuestring

The name of the queue in which the serverless job is run.

comp
Userstring

The username that is used to run the serverless job.

testuser
SubmitTimelong

The time when the serverless job is submitted.

1647423718
StartTimelong

The time when the serverless job started.

1647427667
EndTimelong

The time when the serverless job ended.

1662016121
LastModifyTimelong

The time when the serverless job is last modified.

1663831441000
IsArrayJobboolean

Indicates whether the job is an array job.

false
ArrayPropertiesobject

The properties of the array job.

IndexStartlong

The starting value of the array job index.

1
IndexEndlong

The end value of the array job index.

5
IndexSteplong

The interval of the array job index.

2
ContainerGroupsobject []

The information of the container groups that are used to run the serverless job.

ContainerGroupIdstring

The ID of the container group.

eci-bp1jrgfqqy54kg5hc****
ContainerGroupNamestring

The name of the container group.

test
Statusstring

The status of the instance. Valid values:

  • Pending: The instance is being started.
  • Running: The instance is running.
  • Succeeded: The instance runs successfully.
  • Failed: The instance fails to run.
  • Scheduling: The instance is being created.
  • ScheduleFailed: The instance fails to be created.
  • Restarting: The instance is being restarted.
  • Updating: The instance is being updated.
  • Terminating: The instance is being terminated.
  • Expired: The instance expires.
Running
InstanceTypestring

The instance type of the Elastic Compute Service (ECS) instance.

ecs.g5.large
SpotStrategystring

The bidding policy of the instance. Valid values:

  • NoSpot: The instance is a regular pay-as-you-go instance.
  • SpotWithPriceLimit: The instance is a preemptible instance that has a user-defined maximum hourly price.
  • SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is automatically used as the bidding price.
NoSpot
SpotPriceLimitfloat

The maximum hourly price for the preemptible instance.

This parameter is returned only if you set the SpotStrategy parameter to SpotWithPriceLimit.

0.025
Cpufloat

The number of vCPUs that are allocated to the container.

2
Memoryfloat

The memory size of the elastic container instance. Unit: GiB.

4.0
Containersobject []

The list of containers in the container group.

Argsarray

The startup parameter of the container.

string

The startup parameter of the container.

hello.py
Commandsarray

The startup command of the container.

string

The startup command of the container.

/usr/bin/python
Cpufloat

The number of vCPUs.

2.0
CurrentStateobject

The current status of the container.

DetailStatusstring

The details of the container status.

working
ExitCodelong

The exit code of the container.

0
FinishTimestring

The time when the container stopped running.

2018-08-02T15:00:00Z
Messagestring

The information about the container status.

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

The reason why the container is in this state.

Started
Signallong

The code of the container status.

1
StartTimestring

The time when the container started to run.

2019-12-19T12:05:02Z
Statestring

The status of the job. Valid values:

  • Waiting
  • Running
  • Terminated
Terminated
EnvironmentVarsobject []

The environment variables.

Keystring

The name of the environment variable.

PATH
Valuestring

The value of the environment variable.

/usr/bin/
ValueFromobject

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

FieldRefobject

The specified field.

FieldPathstring

The path of the field.

status.podIP
Gpuinteger

The number of GPUs.

1
Imagestring

The image of the container.

HPL
ImagePullPolicystring

The policy to pull images. Valid values:

  • Always: Each time instances are created, image pulling is performed.
  • IfNotPresent: On-premises images are preferentially used. If no on-premises images are available, image pulling is performed.
  • Never: On-premises images are always used. Image pulling is not performed.
Always
LivenessProbeobject

The liveness probe of the container.

Execsarray

The commands that are run.

string

The commands that are run.

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

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

3
HttpGetobject

The HTTP GET method that is used to check the container.

Pathstring

The path to which HTTP GET requests are sent.

/usr/nginx/
Portlong

The port to which HTTP GET requests are sent.

80
Schemestring

The protocol type of the HTTP GET requests.

HTTP
InitialDelaySecondslong

The number of seconds after the container is started and before a liveness probe is initiated.

10
PeriodSecondslong

The interval at which the probe is run. Unit: seconds. Default value: 10. Minimum value: 1.

5
SuccessThresholdlong

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

1
TcpSocketobject

The TCP socket method that is used to check the container.

Hoststring

The name of the host.

1.2.3.4
Portlong

The port number.

80
TimeoutSecondslong

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

10
Memoryfloat

The memory size of the instance. Unit: GiB.

4.0
Namestring

The container name.

HPL
Portsobject []

The exposed ports and protocols of the container.

Portlong

The port number. Valid values: 1 to 65535.

8080
Protocolstring

The protocol.

TCP
PreviousStateobject

The previous status of the container.

DetailStatusstring

The details of the container status.

working
ExitCodelong

The exit code of the container.

0
FinishTimestring

The time when the container stopped running.

2018-08-02T15:00:00Z
Messagestring

The message about the container status.

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

The reason why the container is in this state.

Completed
Signallong

The code of the container status.

1
StartTimestring

The time when the container started to run.

2018-08-02T15:00:00Z
Statestring

The status of the container. Valid values:

  • Waiting: The container is being started.
  • Running: The container is running.
  • Terminated: The container terminates running.
Terminated
ReadinessProbeobject

The readiness probe that is used to check whether the container is ready to serve a request.

Execsarray

The commands that are run in the container when you use the command line interface (CLI) to perform health checks.

string

The commands that are run in the container when you use CLI to perform health checks.

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

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

3
HttpGetobject

The HTTP GET method that is used to check the container.

Pathstring

The path to which HTTP GET requests are sent.

/usr/local
Portlong

The port to which the system sends an HTTP GET request for a health check.

8080
Schemestring

The protocol type of the HTTP GET requests.

HTTP
InitialDelaySecondslong

The number of seconds after the container is started and before a liveness probe is initiated.

10
PeriodSecondslong

The interval at which the container is checked. Unit: seconds. Default value: 10. Minimum value: 1.

5
SuccessThresholdlong

The minimum number of consecutive successes for a failed liveness probe to be considered successful. Default value: 1. Set the value to 1.

1
TcpSocketobject

The TCP socket method that is used to check the container.

Hoststring

The IP address of the host.

1.2.3.4
Portlong

The port number.

8888
TimeoutSecondslong

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

1
Readyboolean

Indicates whether the container passed the readiness probe.

true
RestartCountinteger

The number of times that the instance worker restarted.

5
SecurityContextobject

The security context of the container.

Capabilityobject

The permissions specific to the processes in the container.

Addsarray

The permissions specific to the processes in the container.

string

The permissions specific to the processes in the container.

NET_ADMIN
ReadOnlyRootFilesystemboolean

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

true
RunAsUserlong

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

1558
Stdinboolean

Indicates whether the container allocates buffer resources to standard input streams when the container runs. If you do not specify this parameter, an end-of-file (EOF) error may occur when standard input streams in the container are read. Default value: false.

true
StdinOnceboolean

Indicates whether the container runtime closes the stdin channel after the stdin channel has been opened by a single attach session. If stdin is true, the stdin stream remains open across multiple attach sessions. If StdinOnce is set to true, stdin is opened on container start, but remains empty until the first client attaches to stdin, and then remains open and receives data until the client disconnects. When the client disconnects, stdin is closed and remains closed until the container is restarted.

true
Ttyboolean

Indicates whether interaction is enabled. Default value: false. If the value of the Command parameter is /bin/bash, the value of this parameter must be set to true.

false
VolumeMountsobject []

Information about the mounted volumes.

MountPathstring

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

/usr/share/
MountPropagationstring

The mount propagation settings of the volume. Mount propagation allows you to share volumes that are mounted on a container with other containers in the same pod or other pods on the same node. Valid values:

  • None: The volume mount does not receive subsequent mounts that are mounted to the volume or the subdirectories of the volume.
  • HostToCotainer: The volume mount receives all subsequent mounts that are mounted to the volume or the subdirectories of the volume.
  • Bidirectional: This value is similar to HostToCotainer. The volume mount receives all subsequent mounts that are mounted to the volume or the subdirectories of the volume. All volume mounts that are mounted by the container are propagated back to the instance and all containers of all pods that use the same volume.
None
Namestring

The name of the volume.

test-empty
ReadOnlyboolean

Indicates whether the volumes are read-only.

false
SubPathstring

The subdirectory of the volume. This parameter specifies different subdirectories of the same volume that the instance can mount to different subdirectories of containers.

/usr/sub
WorkingDirstring

The working directory.

/usr/local/nginx
Volumesobject []

The information about volumes.

ConfigFileVolumeConfigFileToPathsobject []

The paths to configuration files.

Contentstring

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

hello world
Pathstring

The relative path to the configuration file.

/usr/bin/
DiskVolumeDiskIdstring

The ID of the disk volume if you set Type to DiskVolume.

d-xxxx
DiskVolumeFsTypestring

The type of the volume.

xfs
EmptyDirVolumeMediumstring

The storage media for the emptyDir volume. This parameter is empty by default, which indicates that the node file system is used as the storage media. Valid values:

Memory
EmptyDirVolumeSizeLimitstring

The storage size of the emptyDir volume. If you specify this parameter, include the unit in the value. We recommend that you use Gi or Mi.

256Mi
FlexVolumeDriverstring

The name of the driver when you set the Type parameter to FlexVolume.

flexvolume
FlexVolumeFsTypestring

The file system type when you set the Type parameter to FlexVolume. The default value is determined by the script of the FlexVolume plug-in.

ntfs
FlexVolumeOptionsstring

The FlexVolume options.

[nolock,tcp,noresvport]
NFSVolumePathstring

The path of the Network File System (NFS) volume.

/eci
NFSVolumeReadOnlyboolean

Indicates whether the NFS volume is read-only.

false
NFSVolumeServerstring

The endpoint of the server if you set Type to NFSVolume.

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

The name of the volume.

test-empty
Typestring

The type of the volume. Valid values:

  • EmptyDirVolume
  • NFSVolume
  • ConfigFileVolume
  • FlexVolume
EmptyDirVolume
Eventsobject []

The event information. Up to 50 events can be returned.

Countinteger

The number of the events.

20
FirstTimestampstring

The time when the event started.

2018-08-02T15:00:00Z
LastTimestampstring

The time when the event ended.

2018-08-02T15:00:00Z
Messagestring

The message about the event.

Started container
Namestring

The name of the category to which the event belongs.

test-xxx
Reasonstring

The name of the event.

Created
Typestring

The type of the event. Valid values:

  • Normal
  • Warning
Normal
CreationTimestring

The time when the instance is created. The time follows the RFC 3339 standard and must be in UTC.

2018-08-02T15:00:00Z
SucceededTimestring

The time when all containers exited on success. The time follows the RFC 3339 standard and must be in UTC.

2019-12-11T04:33:42Z
ExpiredTimestring

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

2018-08-02T15:00:00Z
FailedTimestring

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

2018-08-02T15:00:00Z
Discountlong

The discount.

9
DnsConfigobject

The Domain Name System (DNS) settings.

NameServersarray

The IP addresses of DNS servers.

string

The IP address of the DNS server.

[10.2.*.*]
Optionsobject []

The options. Each option is a name-value pair. The value in the name-value pair is optional.

Namestring

The variable name of the option.

name
Valuestring

The variable value of the option.

value
Searchesarray

The search domains of the DNS server.

string

The search domain of the DNS server.

svc.local.kubenetes
EciSecurityContextobject

The security context of the container group.

Sysctlsobject []

The Sysctl parameters.

Namestring

The name of the Sysctl parameter.

kernel.msgmax
Valuestring

The value of the Sysctl parameter.

65536
EniInstanceIdstring

The ID of the elastic network interface (ENI).

eni-bp14rzqi6fd8satm****
EphemeralStoragelong

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

20
HostAliasesobject []

The hostname mapping of a container in the elastic container instance.

Hostnamesarray

The information about the host.

string

The name of the host.

['hehe.com', 'haha.com']
Ipstring

The IP address.

192.0.XX.XX
InitContainersobject []

The init containers.

Argsarray

The startup parameters.

string

The startup parameter.

['hello world']
Commandarray

The startup command.

string

The startup command.

[/bin/sh echo]
Cpulong

The number of vCPUs.

1.0
CurrentStateobject

The current status of the container.

DetailStatusstring

The details of the container status.

working
ExitCodelong

The exit code of the container.

0
FinishTimestring

The time when the container stopped running.

2018-08-02T15:00:00Z
Messagestring

The message about the event.

Created container
Reasonstring

The reason why the container is in this state.

Started
Signallong

The code of the container status.

1
StartTimestring

The time when the container started to run.

2018-08-02T15:00:00Z
Statestring

The status of the container. Valid values:

  • Waiting
  • Running
  • Terminated
Running
EnvironmentVarsobject []

The environment variables.

Keystring

The name of the environment variable.

PATH
Valuestring

The value of the environment variable.

/usr/local/bin
ValueFromobject

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

FieldRefobject

The specified field.

FieldPathstring

The path of the field in the specified version. Set the value to status.podIP.

status.podIP
Gpulong

The number of GPUs.

1
Imagestring

The image.

nginx
ImagePullPolicystring

The policy to pull images.

Always
Memorylong

The size of memory that is allocated to the init container. Unit: GiB.

2.0
Namestring

The container name.

Init-xxx
Portsobject []

The exposed ports and protocols of the container.

Portlong

The port number. Valid values: 1 to 65535.

8888
Protocolstring

The protocol.

TCP
PreviousStateobject

The previous status of the container.

DetailStatusstring

The details of the container status.

working
ExitCodelong

The exit code of the container.

0
FinishTimestring

The time when the container stopped running.

2019-12-24T05:35:44Z
Messagestring

The message about the container status.

Started container
Reasonstring

The reason why the container is in this state.

completed
Signallong

The code of the container status.

1
StartTimestring

The time when the container started to run.

2019-12-24T05:35:44Z
Statestring

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

Terminated
Readyboolean

Indicates whether the container passed the readiness probe.

true
RestartCountlong

The number of times that the instance worker restarted.

5
SecurityContextobject

The security context of the container.

Capabilityobject

The permissions specific to the processes in the container.

Addsarray

The permissions specific to the processes in the container.

string

The permissions specific to the processes in the container.

NET_ADMIN
ReadOnlyRootFilesystemboolean

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

true
RunAsUserlong

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

1557
VolumeMountsobject []

The information about the volumes that are mounted to the init container.

MountPathstring

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

/usr/share/
MountPropagationstring

The mount propagation settings of the volume. Mount propagation allows you to share volumes that are mounted on a container with other containers in the same pod or other pods on the same node. Valid values:

  • None: The volume mount does not receive subsequent mounts that are mounted to the volume or the subdirectories of the volume.
  • HostToCotainer: The volume mount receives all subsequent mounts that are mounted to the volume or the subdirectories of the volume.
  • Bidirectional: This value is similar to HostToCotainer. The volume mount receives all subsequent mounts that are mounted to the volume or the subdirectories of the volume. All volume mounts that are mounted by the container are propagated back to the instance and all containers of all pods that use the same volume.

Default value: None.

None
Namestring

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

test-empty
ReadOnlyboolean

Default value: False.

false
WorkingDirstring

The working directory.

/usr/test
InternetIpstring

The public IP address.

192.0.XX.XX
IntranetIpstring

The private IP address.

172.16.XX.XX
Ipv6Addressstring

The IPv6 address.

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

The name of the instance RAM role. You can use an instance RAM role to access both elastic container instances and ECS instances. For more information, see Use the instance RAM role by calling APIs.

ram:PassRole
RegionIdstring

The ID of the region in which the instance resides.

cn-hangzhou
ResourceGroupIdstring

The ID of the resource group to which the cluster belongs. If you do not specify a resource group when you create an elastic container instance, the system automatically adds the instance to the default resource group in your account.

rg-aekzh43v*****
RestartPolicystring

The instance restart policy. Valid values:

  • Always: Always restarts the instance if a container in the instance exits upon termination.
  • Never: Never restarts the instance if a container in the instance exits upon termination.
  • OnFailure: Restarts the instance when the last start failed.
Never
SecurityGroupIdstring

The ID of the security group.

sg-bp12ujq5zpxuyjfo3o8r
Tagsobject []

The tags of the instances.

Keystring

The tag key.

name
Valuestring

The tag value.

test-xh
TenantEniInstanceIdstring

This parameter is unavailable.

i-xxx
TenantEniIpstring

This parameter is unavailable.

10.10.XX.XX
TenantSecurityGroupIdstring

This parameter is unavailable.

sg-xxx
TenantVSwitchIdstring

This parameter is unavailable.

vsw-xxx
VSwitchIdstring

The vSwitch ID.

vsw-bp1vzjjflab6wvjox****
VpcIdstring

The ID of the virtual private cloud (VPC) to which the elastic container instance belongs.

vpc-1vzjjflab6wvjox****
ZoneIdstring

The ID of the zone in which the elastic container instance is deployed.

cn-hangzhou-h

Examples

Sample success responses

JSONformat

{
  "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\n",
                "Message": "Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)\n",
                "Reason": "Started\n",
                "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 codeError codeError messageDescription
400InvalidParamsThe specified parameter %s is invalid.The specified parameter %s is invalid.
400NotEnabledYou have not enabled this serviceYou have not enabled this service
404ClusterNotFoundThe specified cluster does not exist.The specified instance does not exist.
404ManagerNotFoundThe manager nodes do not exist or their status is abnormal.The manager nodes do not exist or their status is abnormal.
406EcsErrorAn error occurred while calling the ECS API operation.An error occurred while calling the ECS API operation.
406DbErrorA database service error occurred.Database request failed.
406RedisErrorA Redis service error occurred.Redis request failed.
406AliyunErrorAn Alibaba Cloud product error occurred.An Alibaba Cloud product error occurred.
406AgentErrorThe agent service request failed: %sThe agent request failed.
407NotAuthorizedYou are not authorized by RAM for this request.The request is not authorized by RAM.
500UnknownErrorAn unknown error occurred.An unknown error occurred.
503ServiceUnavailableThe request has failed due to a temporary failure of the serverThe request has failed due to a temporary failure of the server.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-21The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 406 change
    delete Error Codes: 400
    delete Error Codes: 404
    delete Error Codes: 407
    delete Error Codes: 500
    delete Error Codes: 503
2023-07-17The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 404
    delete Error Codes: 406
    delete Error Codes: 407
    delete Error Codes: 500
    delete Error Codes: 503
Output ParametersThe response structure of the API has changed.