GetJob

Updated at:

Retrieves the detailed configuration and runtime information of a job.

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

paidlc:GetJob

get

*All Resource

*

None None

Request syntax

GET /api/v1/jobs/{JobId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

JobId

string

Yes

The job ID. For information about how to obtain a job ID, see ListJobs.

dlc*******

Request parameters

Parameter

Type

Required

Description

Example

NeedDetail

boolean

No

Specifies whether to return the detailed information of the job. Default value: true.

true

Response elements

Element

Type

Description

Example

object

The JSON-formatted string.

JobId

string

The job ID.

dlc*******

JobType

string

The job type. This is specified by the JobType parameter in the CreateJob API.

TFJob

DisplayName

string

The job name.

tf-mnist-test

UserId

string

The Alibaba Cloud UID of the user who submitted the job.

12*********

Status

string

The running status of the job. Valid values:

  • Creating

  • Queuing

  • Bidding (currently only for Lingjun spot jobs)

  • EnvPreparing

  • SanityChecking

  • Running

  • Restarting

  • Stopping

  • SucceededReserving

  • FailedReserving

  • Succeeded

  • Failed

  • Stopped

Stopped

WorkspaceId

string

The ID of the workspace to which the job belongs.

268

WorkspaceName

string

The name of the workspace to which the job belongs.

dlc-workspace

ResourceId

string

The ID of the resource group where the job runs.

r******

ResourceLevel

string

The resource level used when the job runs.

L0

ReasonCode

string

The reason code, which categorizes the sub-status under the current status.

JobStoppedByUser

ReasonMessage

string

The detailed description of the status.

Job is stopped by user.

JobSpecs

array

The node configurations in the job. For more information, see JobSpecs in the CreateJob API.

JobSpec

The detailed configuration of a node type.

UserCommand

string

The startup command for each node.

python /root/code/mnist.py

DataSources

array<object>

The list of data sources.

object

The data source.

DataSourceId

string

The ID of the data source.

d*******

MountPath

string

The local mount path. This parameter is optional. Default value: empty (which indicates that the mount path in the data source is used).

/mnt/data/

Uri

string

The path of the data source.

oss://bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/

CodeSource

object

The code source.

CodeSourceId

string

The ID of the code source.

code******

Branch

string

The code branch.

master

Commit

string

The commit ID of the code.

44da109b59f8596152987eaa8f3b2487xxxxxx

MountPath

string

The local mount path.

/mnt/data

ThirdpartyLibs

array

The list of third-party Python libraries to be installed.

string

The third-party Python library.

numpy==1.16.1

ThirdpartyLibDir

string

The folder where the third-party library file (requirements.txt) is located.

/root/code/

Envs

object

The environment variable configurations.

{"ENABLE_DEBUG_MODE":"true"}

string

The key and value of the environment variable.

ENABLE_DEBUG_MODE

UserVpc

object

The user VPC.

VpcId

string

The ID of the user VPC.

vpc-abcdef****

SwitchId

string

The ID of the user vSwitch.

vs-abcdef****

SecurityGroupId

string

The ID of the user security group.

sg-abcdef****

ExtendedCidrs

array

The extended CIDR blocks. Example: 192.168.0.1/24.

string

The extended CIDR block.

192.168.0.1/24

DefaultRoute

string

The default route. This parameter is valid only for general compute resources. Valid values:

eth0: uses the default network interface controller (NIC) to access external networks through the public gateway. eth1: uses the user elastic network interface (ENI) to access external networks through the private gateway.

eth0

GmtCreateTime

string

The time when the job was created (UTC).

2021-01-12T14:35:01Z

GmtSubmittedTime

string

The time when the job was submitted to the cluster (UTC).

2021-01-12T14:36:01Z

GmtRunningTime

string

The time when the job started running (UTC).

2021-01-12T14:36:21Z

GmtSuccessedTime

string

The time when the job ended normally (UTC).

2021-01-12T15:36:08Z

GmtStoppedTime

string

The time when the job was stopped (UTC).

2021-01-12T15:36:08Z

GmtFailedTime

string

The time when the job failed (UTC).

2021-01-12T15:36:08Z

Duration

integer

The duration of the job, in seconds.

3602

Pods

array<object>

All pods that are running the job.

array<object>

The array of pods.

Type

string

The pod type, which corresponds to a JobSpec in the JobSpecs parameter of the CreateJob operation.

Worker

PodId

string

The pod ID. You can use this ID to call the GetPodLogs and GetPodEvents operations to obtain detailed logs and events of the pod.

Worker

PodUid

string

The Pod UID.

fe846462-af2c-4521-bd6f-96787a57591d

Status

string

The pod status. Valid values:

  • Pending

  • Running

  • Succeeded

  • Failed

  • Unknown

Running

Ip

string

The IP address of the pod.

10.0.1.2

GmtCreateTime

string

The time when the pod was created (UTC).

2021-01-12T14:36:01Z

GmtStartTime

string

The time when the pod was started (UTC).

2021-01-12T14:36:01Z

GmtFinishTime

string

The time when the pod finished running (UTC).

2021-01-12T15:36:05Z

HistoryPods

array<object>

The historical pods.

object

The array of historical pods.

Type

string

The pod type.

Worker

PodId

string

The Pod ID.

Worker

PodUid

string

The Pod UID.

fe846462-af2c-4521-bd6f-96787a57591d

Status

string

The pod status.

Failed

Ip

string

The Pod IP address.

10.0.1.3

GmtCreateTime

string

The time when the pod was created (UTC).

2021-01-12T14:36:01Z

GmtStartTime

string

The time when the pod was started (UTC).

2021-01-12T14:36:01Z

GmtFinishTime

string

The time when the pod finished running (UTC).

2021-01-12T14:36:01Z

SubStatus

string

The substatus of the pod, such as the preemption status. Valid values:

  • Normal

  • Evicted

Normal

ResourceType

string

The resource usage type of the pod.

Normal

Duration

number

The runtime of the pod.

0

NodeName

string

The name of the node.

i-a

PodIps

array

The IP addresses of the pod.

PodNetworkInterface

The IP address of each network interface.

supportedProfilingTypes

string

The list of supported profiling types, separated by commas, such as sysom. An empty string indicates that profiling is not supported.

sysom

SubStatus

string

The substatus of the pod, such as the preemption status. Valid values:

  • Normal

  • Evicted

Normal

ResourceType

string

The resource usage type of the pod.

Normal

Duration

number

The runtime of the pod.

0

NodeName

string

The name of the node.

i-a

PodIps

array

The IP addresses of the pod.

PodNetworkInterface

The IP address of each network interface.

supportedProfilingTypes

string

The list of supported profiling types, separated by commas, such as sysom. An empty string indicates that profiling is not supported.

sysom

RequestId

string

The request ID, which is used for troubleshooting and diagnostics.

473469C7-AA6F-4DC5-B3DB-xxxxxxxx

Settings JobSettings

The additional parameter settings for the job.

ClusterId

string

The cluster ID.

a*****

ElasticSpec JobElasticSpec

The elastic job parameters.

EnabledDebugger

boolean

Indicates whether the debugger task is enabled.

false

Priority

integer

The priority of the job. Valid values: 1 to 9.

1

SubStatus

string

The substatus of the job, such as the preemption retry status.

Restarting

RestartTimes

string

The number of retries used and the maximum number of retries for the job.

0/10

StatusHistory

array

The historical statuses.

StatusTransitionItem

The historical statuses.

TenantId

string

The tenant ID.

GAR***W134

ResourceType

string

The resource type. Valid values: ECS, Lingjun, and ACS.

ECS

CredentialConfig CredentialConfig

The access credential configuration.

Accessibility

string

The visibility of the job. Valid values:

  • PUBLIC: Visible to all users in this workspace.

  • PRIVATE (default): Visible only to you and administrators in this workspace.

PRIVATE

RestartRecord

array<object>

The job restart record.

array<object>

The job restart record.

DetailErrorInfoList

array<object>

The error message list.

object

The error message.

AddJobLevelBlacklist

boolean

The job blacklist.

AddNodeToBlacklist

boolean

The node blacklist.

DetailErrorMsg

string

The detailed error message.

The training process exited with a non-zero status.

ErrorCode

string

The error code.

ErrorMsg

string

The error message.

Training process exited unexpectedly.

ErrorSource

string

The error source.

Node

string

The node.

i-a

Pod

string

The instance.

dlc-example-master-0

TriggerRestart

boolean

Specifies whether a restart is triggered.

JobRestartCount

integer

The number of job restarts.

0

OccurPhase

string

The phase in which the event occurred.

OccurTime

string

The time when the event occurred.

2026-11-01T00:00:00Z

Reason

string

The reason.

Training process exited unexpectedly.

RestartDurationInSec

integer

The restart duration in seconds.

0

RestartFailReason

string

The reason for the restart failure.

Timed out waiting for the replacement pod.

RestartStatus

string

The restart status.

TriggerID

string

TriggerID

trigger-example-001

RestartLevelType

string

The restart level (Pod-level restart or job-level restart).

JobReplicaStatuses

array

The job replica status.

JobReplicaStatus

The job replica status.

GmtFinishTime

string

The end time of the job in UTC.

2021-01-12T15:36:08Z

CustomEnvs

array<object>

The list of custom environment variables.

object

Key

string

The name of the environment variable.

PUB

Value

string

The value of the environment variable.

keep

Visible

string

The visibility of the environment variable. A value of public indicates that the variable is public, and a value of private indicates that the variable is private.

public

RoleSystemEnvs

object

The system environment variables grouped by job role.

{"Worker":{"OMP_NUM_THREADS":"4"}}

object

The key-value pairs of system environment variables for the specified role.

{"OMP_NUM_THREADS":"4"}

string

The value of the system environment variable.

4

Description

string

The description of the job.

This is a training job

SchedulingStrategy

string

The scheduling strategy configuration.

Valid values:

  • Auto
  • Binpack
  • Spread

Auto

supportedProfilingTypes

string

The list of supported profiling types, separated by commas, such as sysom. An empty string indicates that profiling is not supported.

sysom

RequestCPU

integer

The amount of CPU resources required by the job.

10

RequestGPU

number

The amount of GPU resources required by the job.

10

RequestMemory

number

The amount of memory resources required by the job.

10

Examples

Success response

JSON format

{
  "JobId": "dlc*******",
  "JobType": "TFJob",
  "DisplayName": "tf-mnist-test",
  "UserId": "12*********",
  "Status": "Stopped",
  "WorkspaceId": "268",
  "WorkspaceName": "dlc-workspace",
  "ResourceId": "r******",
  "ResourceLevel": "L0",
  "ReasonCode": "JobStoppedByUser",
  "ReasonMessage": "Job is stopped by user.",
  "JobSpecs": [
    {
      "AssignNodeSpec": {
        "AntiAffinityHyperNodes": [
          {
            "HyperNodeName": "mg1234567",
            "NodeNames": "lingjxxxxxxxx"
          }
        ],
        "AntiAffinityNodeNames": "lingjxxxxxxxx",
        "EnableAssignNode": true,
        "HyperNodes": [
          {
            "HyperNodeName": "mg1234567",
            "NodeNames": "lingjxxxxxxxx"
          }
        ],
        "NodeNames": "lingjxxxxxxxx"
      },
      "AutoScalingSpec": {
        "AutoscalingMetricSpec": {
          "MetricName": "POD_CPU_UTIL",
          "StabilizationWindowSeconds": 60,
          "TargetValue": 80,
          "Tolerance": "0.1"
        },
        "MaxReplicas": 10,
        "MinReplicas": 1,
        "PodsToDelete": [
          "pod-a"
        ],
        "ScalingStrategy": "Default"
      },
      "ConsiderInSuccessPolicy": false,
      "Driver": "535.54.03",
      "EcsSpec": "ecs.c6.large",
      "ElasticSpotSpecs": [
        {
          "InstanceType": "ecs.gn6e-c12g1.3xlarge",
          "SpotDiscountLimit": 0.8,
          "SpotPriceLimit": 0.4744,
          "SpotStrategy": "SpotWithPriceLimit"
        }
      ],
      "ExtraPodSpec": {
        "InitContainers": [
          {
            "Args": [
              "-v"
            ],
            "Command": [
              "curl www.aliyun.com"
            ],
            "Env": [
              {
                "Name": "ENABLE_DEBUG",
                "Value": "true"
              }
            ],
            "Image": "registry.cn-hangzhou.aliyuncs.com/pai-dlc/curl:v1.0.0",
            "Name": "data-init",
            "Resources": {
              "Limits": {
                "key": "{'cpu': '1', 'memory': '1000Mi'}"
              },
              "Requests": {
                "key": "{'cpu': '1', 'memory': '1000Mi'}"
              }
            },
            "SecurityContext": {
              "Capabilities": {
                "Add": [
                  "NET_ADMIN"
                ],
                "Drop": [
                  "NET_ADMIN"
                ]
              },
              "Privileged": false,
              "RunAsGroup": 1000,
              "RunAsUser": 1000,
              "SeccompProfile": {
                "LocalhostProfile": "my-profiles/profile-allow.json",
                "Type": "Unconfined"
              }
            },
            "WorkingDir": "/root"
          }
        ],
        "Lifecycle": {
          "PostStart": {
            "Exec": {
              "Command": [
                "echo"
              ]
            }
          },
          "PreStop": {
            "Exec": {
              "Command": [
                "/bin/sh"
              ]
            }
          }
        },
        "MainContainerSecurityContext": {
          "Capabilities": {
            "Add": [
              "NET_ADMIN"
            ],
            "Drop": [
              "NET_ADMIN"
            ]
          },
          "Privileged": false,
          "RunAsGroup": 1000,
          "RunAsUser": 1000,
          "SeccompProfile": {
            "LocalhostProfile": "my-profiles/profile-allow.json",
            "Type": "Unconfined"
          }
        },
        "PodAnnotations": {
          "key": "example-annotation"
        },
        "PodLabels": {
          "key": "example-lable"
        },
        "SharedVolumeMountPaths": [
          "/root/share/"
        ],
        "SideCarContainers": [
          {
            "Args": [
              "-v"
            ],
            "Command": [
              "curl www.aliyun.com"
            ],
            "Env": [
              {
                "Name": "ENABLE_DEBUG",
                "Value": "true"
              }
            ],
            "Image": "registry.cn-hangzhou.aliyuncs.com/pai-dlc/curl:v1.0.0",
            "Name": "data-init",
            "Resources": {
              "Limits": {
                "key": "{'cpu': '1', 'memory': '1000Mi'}"
              },
              "Requests": {
                "key": "{'cpu': '1', 'memory': '1000Mi'}"
              }
            },
            "SecurityContext": {
              "Capabilities": {
                "Add": [
                  "NET_ADMIN"
                ],
                "Drop": [
                  "NET_ADMIN"
                ]
              },
              "Privileged": false,
              "RunAsGroup": 1000,
              "RunAsUser": 1000,
              "SeccompProfile": {
                "LocalhostProfile": "my-profiles/profile-allow.json",
                "Type": "Unconfined"
              }
            },
            "WorkingDir": "/root"
          }
        ]
      },
      "HyperNodeSchedulingConfig": {
        "MinAvailable": 1,
        "QualityPolicy": "AlwaysRequire"
      },
      "Image": "registry-vpc.cn-hangzhou.aliyuncs.com/cloud-dsw/tensorflow:1.12PAI-gpu-py36-cu101-ubuntu18.04",
      "ImageConfig": {
        "Auth": "",
        "DockerRegistry": "docker****registry.com",
        "Password": "password",
        "Username": " username"
      },
      "IsCheif": false,
      "IsChief": false,
      "LocalMountSpecs": [
        {
          "LocalPath": "/local/a",
          "MountMode": "Filesystem",
          "MountPath": "/mnt/data"
        }
      ],
      "OversoldType": "AcceptQuotaOverSold",
      "PodCount": 1,
      "QuotaId": "quota12345",
      "ResourceConfig": {
        "CPU": "10",
        "GPU": "3",
        "GPUType": "Tesla-V100-16G",
        "Memory": "10Gi",
        "SharedMemory": "5Gi"
      },
      "RestartPolicy": "ExitCode",
      "ServiceSpec": {
        "DefaultPort": 8080,
        "ExtraPorts": [
          8081
        ],
        "ServiceMode": "PerRole"
      },
      "SpotSpec": {
        "SpotDiscountLimit": 0.8,
        "SpotPriceLimit": 0.4744,
        "SpotStrategy": "SpotWithPriceLimit"
      },
      "StartupDependencies": [
        {
          "MinReplicas": "1",
          "OnPhase": "ServiceReady",
          "Type": "Worker"
        }
      ],
      "SystemDisk": {
        "Category": "cloud_essd",
        "PerformanceLevel": "PL1",
        "Size": 200
      },
      "Type": "Worker",
      "UseSpotInstance": false,
      "UserCommand": "python train.py"
    }
  ],
  "UserCommand": "python /root/code/mnist.py",
  "DataSources": [
    {
      "DataSourceId": "d*******",
      "MountPath": "/mnt/data/",
      "Uri": "oss://bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/"
    }
  ],
  "CodeSource": {
    "CodeSourceId": "code******",
    "Branch": "master",
    "Commit": "44da109b59f8596152987eaa8f3b2487xxxxxx",
    "MountPath": "/mnt/data"
  },
  "ThirdpartyLibs": [
    "numpy==1.16.1"
  ],
  "ThirdpartyLibDir": "/root/code/",
  "Envs": {
    "key": "ENABLE_DEBUG_MODE"
  },
  "UserVpc": {
    "VpcId": "vpc-abcdef****",
    "SwitchId": "vs-abcdef****",
    "SecurityGroupId": "sg-abcdef****",
    "ExtendedCidrs": [
      "192.168.0.1/24"
    ],
    "DefaultRoute": "eth0"
  },
  "GmtCreateTime": "2021-01-12T14:35:01Z",
  "GmtSubmittedTime": "2021-01-12T14:36:01Z",
  "GmtRunningTime": "2021-01-12T14:36:21Z",
  "GmtSuccessedTime": "2021-01-12T15:36:08Z",
  "GmtStoppedTime": "2021-01-12T15:36:08Z",
  "GmtFailedTime": "2021-01-12T15:36:08Z",
  "Duration": 3602,
  "Pods": [
    {
      "Type": "Worker",
      "PodId": "Worker",
      "PodUid": "fe846462-af2c-4521-bd6f-96787a57591d",
      "Status": "Running",
      "Ip": "10.0.1.2",
      "GmtCreateTime": "2021-01-12T14:36:01Z",
      "GmtStartTime": "2021-01-12T14:36:01Z",
      "GmtFinishTime": "2021-01-12T15:36:05Z",
      "HistoryPods": [
        {
          "Type": "Worker",
          "PodId": "Worker",
          "PodUid": "fe846462-af2c-4521-bd6f-96787a57591d",
          "Status": "Failed",
          "Ip": "10.0.1.3",
          "GmtCreateTime": "2021-01-12T14:36:01Z",
          "GmtStartTime": "2021-01-12T14:36:01Z",
          "GmtFinishTime": "2021-01-12T14:36:01Z",
          "SubStatus": "Normal",
          "ResourceType": "Normal",
          "Duration": 0,
          "NodeName": "i-a",
          "PodIps": [
            {
              "InterfaceName": "eth0",
              "Ip": "10.0.1.2"
            }
          ],
          "supportedProfilingTypes": "sysom"
        }
      ],
      "SubStatus": "Normal",
      "ResourceType": "Normal",
      "Duration": 0,
      "NodeName": "i-a",
      "PodIps": [
        {
          "InterfaceName": "eth0",
          "Ip": "10.0.1.2"
        }
      ],
      "supportedProfilingTypes": "sysom"
    }
  ],
  "RequestId": "473469C7-AA6F-4DC5-B3DB-xxxxxxxx",
  "Settings": {
    "BusinessUserId": "16****",
    "Caller": "SilkFlow",
    "Tags": {
      "key": "key:value"
    },
    "PipelineId": "pid-12****",
    "EnableTideResource": true,
    "EnableErrorMonitoringInAIMaster": false,
    "ErrorMonitoringArgs": "--enable-log-hang-detection true",
    "EnableRDMA": true,
    "EnableOssAppend": true,
    "OversoldType": "AcceptQuotaOverSold",
    "AdvancedSettings": {
      "vm.max_map_count": "262144"
    },
    "Driver": "535.54.03",
    "EnableSanityCheck": true,
    "SanityCheckArgs": "--sanity-check-timing=AfterJobFaultTolerant --sanity-check-timeout-ops=MarkJobFail",
    "JobReservedMinutes": 30,
    "JobReservedPolicy": "Always",
    "EnableCPUAffinity": true,
    "DisableEcsStockCheck": false,
    "AllocateAllRDMADevices": false,
    "EnableDSWDev": false,
    "DataJuicerConfig": {
      "ExecutionMode": "standalone",
      "CommandType": "config",
      "EnableResourceEstimation": true,
      "ResourceLimit": {
        "CPU": "2",
        "Memory": "10Gi",
        "GPU": "20"
      }
    },
    "ModelConfig": {
      "ModelName": "model_a",
      "ModelTemplate": {
        "ModelName": "Qwen3-VL-32B-Instruct-PAI_template",
        "Provider": "pai",
        "Collections": "QuickStartTemplate"
      }
    },
    "AllowUnschedulableNodes": false,
    "Shell": "/bin/bash",
    "TerminationGracePeriodSeconds": 60,
    "ElasticSpotJobMaxRestartTimes": 5,
    "EnableIntraJobSSH": true,
    "CrossAccountVpcs": [
      {
        "VpcId": "vpc-xxx",
        "SwitchId": "vsw-xxx",
        "SecurityGroupId": "sg-xxx",
        "DefaultRoute": "eth1",
        "RoleChain": "[\n  {\n    \"roleType\":\"service\",\n    \"roleArn\":\"acs:ram::service account UID:role/roletoassumecustomerrole\",\n    \"assumeRoleFor\": \"service account UID\"\n  },\n  {\n    \"roleType\":\"service\",\n    \"roleArn\":\"acs:ram::end user UID:role/user-role\",\n    \"assumeRoleFor\":\"end user UID\"\n  }\n]",
        "ExtendedCIDRs": [
          "192.168.0.0/24"
        ]
      }
    ]
  },
  "ClusterId": "a*****",
  "ElasticSpec": {
    "EnableElasticTraining": true,
    "MinParallelism": 1,
    "MaxParallelism": 8,
    "AIMasterType": "ecs.c6.large",
    "AIMasterDockerImage": "registry/aimaster:v1",
    "EnablePsJobElasticWorker": false,
    "EnableAIMaster": false,
    "EnablePsResourceEstimate": true,
    "EnablePsJobElasticPS": true,
    "PSMinParallelism": 4,
    "PSMaxParallelism": 10,
    "ElasticStrategy": "chief",
    "EnableEDP": true,
    "EDPMaxParallelism": 16,
    "EDPMinParallelism": 8
  },
  "EnabledDebugger": false,
  "Priority": 1,
  "SubStatus": "Restarting",
  "RestartTimes": "0/10",
  "StatusHistory": [
    {
      "Status": "Running",
      "StartTime": "2020-11-08T16:00:00Z",
      "EndTime": "2020-11-08T17:00:00Z",
      "ReasonCode": "JobStoppedByUser",
      "ReasonMessage": "Job is stopped by user."
    }
  ],
  "TenantId": "GAR***W134",
  "ResourceType": "ECS",
  "CredentialConfig": {
    "EnableCredentialInject": false,
    "AliyunEnvRoleKey": "0",
    "CredentialConfigItems": [
      {
        "Key": "0",
        "Type": "RoleChain",
        "Roles": [
          {
            "RoleArn": "acs:ram::1872xxxxxxxxx:role/account-pai-prod",
            "RoleType": "service",
            "AssumeRoleFor": "123456",
            "Policy": "{\"Version\":\"1\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"oss:GetObject\"],\"Resource\":[\"acs:oss:*:*:example-bucket/data/*\"]}]}",
            "AssumeUserInfo": {
              "SecurityToken": "CAISexample****SecurityToken",
              "AccessKeyId": "LTAI5tExample****KeyId1234",
              "Type": "sub",
              "Id": "203610320085271232"
            }
          }
        ]
      }
    ]
  },
  "Accessibility": "PRIVATE",
  "RestartRecord": [
    {
      "DetailErrorInfoList": [
        {
          "AddJobLevelBlacklist": false,
          "AddNodeToBlacklist": false,
          "DetailErrorMsg": "The training process exited with a non-zero status.",
          "ErrorCode": "",
          "ErrorMsg": "Training process exited unexpectedly.",
          "ErrorSource": "",
          "Node": "i-a",
          "Pod": "dlc-example-master-0",
          "TriggerRestart": false
        }
      ],
      "JobRestartCount": 0,
      "OccurPhase": "",
      "OccurTime": "2026-11-01T00:00:00Z",
      "Reason": "Training process exited unexpectedly.",
      "RestartDurationInSec": 0,
      "RestartFailReason": "Timed out waiting for the replacement pod.",
      "RestartStatus": "",
      "TriggerID": "trigger-example-001",
      "RestartLevelType": ""
    }
  ],
  "JobReplicaStatuses": [
    {
      "Type": "Worker",
      "Active": 0,
      "EstimatedPodCount": 2,
      "EstimatedAutoScalingSpec": {
        "AutoscalingMetricSpec": {
          "MetricName": "POD_CPU_UTIL",
          "StabilizationWindowSeconds": 60,
          "TargetValue": 80,
          "Tolerance": "0.1"
        },
        "MaxReplicas": 10,
        "MinReplicas": 1,
        "PodsToDelete": [
          "pod-a"
        ],
        "ScalingStrategy": "Default"
      },
      "EstimatedResourceConfig": {
        "CPU": "10",
        "GPU": "3",
        "GPUType": "Tesla-V100-16G",
        "Memory": "10Gi",
        "SharedMemory": "5Gi"
      },
      "Queuing": 0,
      "Dequeued": 0,
      "CurrentSpotInstanceType": "ecs.gn6e-c12g1.3xlarge"
    }
  ],
  "GmtFinishTime": "2021-01-12T15:36:08Z",
  "CustomEnvs": [
    {
      "Key": "PUB",
      "Value": "keep",
      "Visible": "public"
    }
  ],
  "RoleSystemEnvs": {
    "key": {
      "key": "4"
    }
  },
  "Description": "This is a training job",
  "SchedulingStrategy": "Auto",
  "supportedProfilingTypes": "sysom",
  "RequestCPU": 10,
  "RequestGPU": 10,
  "RequestMemory": 10
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.