> ## Documentation Index
> Fetch the complete documentation index at: https://ppio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 查询 Job 详情



## OpenAPI

````yaml gpus/v2-spec/get-job.json GET /gpus/v2/jobs/{job_id}
openapi: 3.0.0
info:
  title: PPIO GPU API v2
  version: 2.0.0
servers:
  - url: https://api.ppio.com
security: []
paths:
  /gpus/v2/jobs/{job_id}:
    get:
      summary: 查询 Job 详情
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
          description: Bearer 身份验证格式，例如：Bearer `{{API 密钥}}`。
        - name: job_id
          in: path
          required: true
          schema:
            type: string
          description: 任务 ID。字符串,长度限制:1-255 字符。
          example: job-id
      responses:
        '200':
          description: 查询成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: 任务 ID
                    example: job-id
                  type:
                    type: string
                    description: 任务类型
                    example: saveImage
                  envs:
                    type: array
                    items:
                      type: string
                    description: 任务环境变量
                    example: []
                  status:
                    type: object
                    description: 任务状态
                    properties:
                      status:
                        type: string
                        description: 状态值
                        example: Succeeded
                      error:
                        type: string
                        description: 错误码或错误类型
                        example: ''
                      message:
                        type: string
                        description: 错误信息
                        example: ''
                  log:
                    type: string
                    description: Job 日志地址
                    example: https://example.com/logs/job-id
                  created_at:
                    type: integer
                    description: 创建时间。Unix 时间戳
                    example: 1714982400
                  member_id:
                    type: string
                    description: 创建者 member ID。原 `creator` 字段语义
                    example: member-id
                  owner_id:
                    type: string
                    description: 所属用户 UUID。原 `uuid` 字段语义
                    example: owner-id
                  deleted_time:
                    type: integer
                    description: 删除时间。Unix 时间戳
                    example: 0
                  update_at:
                    type: integer
                    description: 更新时间。保持 v1 字段语义,Unix 时间戳
                    example: 1714982600
                  instance_id:
                    type: string
                    description: 关联实例 ID
                    example: instance-id

````