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

# Get Job

> Get a job by its id.

:param job_id: id of the job to retrieve



## OpenAPI

````yaml docs/avxcelerate/resource-manager-rest-api/2025-r2-sp02/explore.aws-pre-prod-api-resources-v1.json GET /jobs/{job_id}
openapi: 3.1.0
info:
  title: AVxcelerate Resource Manager
  summary: Service to manage resources to run the jobs.
  description: >

    Resource Manager API enables CRUD operations on resources such as queues,
    deployments, applications,

    and app-runtime-configs.


    ### Features


    **Queues**

    - Create queues with custom storage, resource limits, and environment
    variables.

    - Specify resource limits in two ways:
        - `maximum_allowed_worker_instances`: Maximum concurrent worker instances in the queue (`-1` means unlimited).
        - `maximum_allowed_resources`: Maximum CPU and memory resources for the queue (currently only CPU is supported).
            - If a job specifies `resources_requested`, it is used.
            - Otherwise, the application's `default_resources` (from AppRuntimeConfig) are used.
            - If neither is specified, the queue's `maximum_resources` are used.
    - Manage queues to configure applications within resource limits and group
    applications with similar storage needs.


    **Plugins**

    - Register plugins defining container runtimes (e.g., Docker Engine,
    Kubernetes).


    **Jobs**

    - Submit jobs by providing application details (name, version, image,
    environment variables, etc.).

    - Track job status and clean up resources after completion.
  contact:
    name: Ansys AVxcelerate Autonomy
    url: https://developer.ansys.com/docs/avxcelerate
    email: TeamTyson@ansys.com
  version: 0.1.0
servers:
  - url: https://{host}/api/resources/v1
    variables:
      host:
        default: api.example.com
        description: Host the API is served from
security: []
paths:
  /jobs/{job_id}:
    get:
      tags:
        - jobs
      summary: Get Job
      description: |-
        Get a job by its id.

        :param job_id: id of the job to retrieve
      operationId: jobs-get_job
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: integer
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    JobRead:
      properties:
        name:
          type: string
          title: Name
        queue_id:
          type: integer
          title: Queue Id
        parent_job_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Parent Job Id
        application_id:
          type: integer
          title: Application Id
        arguments:
          items:
            type: string
          type: array
          title: Arguments
          default: []
        replica_count:
          type: integer
          title: Replica Count
          default: 1
        auto_clean:
          type: boolean
          title: Auto Clean
          default: false
        resources_requested:
          anyOf:
            - $ref: '#/components/schemas/ResourcesDefinition'
            - type: 'null'
        env:
          additionalProperties:
            type: string
          type: object
          title: Env
          default: {}
        labels:
          additionalProperties:
            type: string
          type: object
          title: Labels
          default: {}
        attributes:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          type: object
          title: Attributes
          default: {}
        id:
          type: integer
          title: Id
        internal_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Internal Id
        status:
          $ref: '#/components/schemas/JobStatusEnum'
        cleaned:
          type: boolean
          title: Cleaned
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        status_updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Status Updated At
        failed_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Failed Reason
      type: object
      required:
        - name
        - queue_id
        - application_id
        - id
        - internal_id
        - status
        - cleaned
        - created_at
        - status_updated_at
        - failed_reason
      title: JobRead
      description: Public job definition.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ResourcesDefinition:
      properties:
        cpu:
          anyOf:
            - type: number
            - type: 'null'
          title: Cpu
        memory_gb:
          anyOf:
            - type: number
            - type: 'null'
          title: Memory Gb
      type: object
      title: ResourcesDefinition
      description: Resource definition.
    JsonValue: {}
    JobStatusEnum:
      type: string
      enum:
        - pending
        - running
        - failed
        - succeeded
      title: JobStatusEnum
      description: Enum of job status.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````