Ansible Workflow Job Templates API

The Workflow Job Templates API from Ansible — 2 operation(s) for workflow job templates.

OpenAPI Specification

ansible-workflow-job-templates-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Ansible Automation Controller Auth Workflow Job Templates API
  version: '2'
  description: 'REST API for Ansible Automation Controller (formerly Ansible Tower / AWX),

    the enterprise-grade automation engine inside the Red Hat Ansible Automation

    Platform. The API exposes management of inventories, hosts, credentials,

    projects, job templates, workflow job templates, schedules, organizations,

    teams, users, and the launching and inspection of jobs.

    '
  contact:
    name: Red Hat Ansible Support
    url: https://access.redhat.com/products/red-hat-ansible-automation-platform/
servers:
- url: https://{controller_host}/api/v2
  description: Self-hosted Ansible Automation Controller deployment
  variables:
    controller_host:
      default: controller.example.com
      description: Hostname of the Automation Controller instance.
security:
- OAuth2Token: []
- BasicAuth: []
tags:
- name: Workflow Job Templates
paths:
  /workflow_job_templates/:
    get:
      tags:
      - Workflow Job Templates
      summary: List workflow job templates
      operationId: listWorkflowJobTemplates
      responses:
        '200':
          $ref: '#/components/responses/ListResponse'
  /workflow_job_templates/{id}/launch/:
    post:
      tags:
      - Workflow Job Templates
      summary: Launch a workflow job template
      operationId: launchWorkflowJobTemplate
      parameters:
      - $ref: '#/components/parameters/Id'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                extra_vars:
                  type: object
                  additionalProperties: true
      responses:
        '201':
          description: Workflow job launched.
components:
  schemas:
    ListResponse:
      type: object
      properties:
        count:
          type: integer
        next:
          type: string
          nullable: true
        previous:
          type: string
          nullable: true
        results:
          type: array
          items:
            type: object
            additionalProperties: true
  responses:
    ListResponse:
      description: A paginated list response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ListResponse'
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: integer
  securitySchemes:
    OAuth2Token:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Personal or application OAuth2 access token.
    BasicAuth:
      type: http
      scheme: basic
      description: HTTP Basic authentication using local controller credentials.