Red Hat · Arazzo Workflow

Red Hat Ansible Automation Platform Build Inventory and Template

Version 1.0.0

Resolve an organization, create an inventory, build a job template on it, and launch a first run.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub CloudContainersEnterpriseHybrid CloudKubernetesLinuxOpen-SourceArazzoWorkflows

Provider

red-hat

Workflows

build-inventory-and-template
Resolve an org, create an inventory, create a template, and launch a job.
Lists organizations, creates an inventory in the first one, creates a job template referencing that inventory and a project/playbook, and launches an initial job.
4 steps inputs: inventoryDescription, inventoryName, playbook, project, templateName, token outputs: inventoryId, jobId, templateId
1
resolveOrganization
List organizations and capture the id of the first one to own the new inventory.
2
createInventory
Create a new inventory within the resolved organization.
3
createTemplate
Create a job template bound to the new inventory and the supplied project and playbook.
4
launchInitialJob
Launch an initial job from the new template to validate that the inventory and template are wired up correctly.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Red Hat Ansible Automation Platform Build Inventory and Template
  summary: Resolve an organization, create an inventory, build a job template on it, and launch a first run.
  description: >-
    A green-field automation setup flow for Red Hat Ansible Automation Platform.
    The workflow resolves the organization to own the new inventory, creates the
    inventory, builds a job template bound to that inventory and an existing
    project and playbook, and launches an initial job to validate the setup.
    Each step inlines its bearer token, request body, documented success
    criteria, and outputs so the flow is self-describing.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-600.40
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-600.40
      capability_name: IT Operations Management
      spec: red-hat-job-templates-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: inventoriesApi
  url: ../openapi/red-hat-inventories-api-openapi.yml
  type: openapi
- name: jobTemplatesApi
  url: ../openapi/red-hat-job-templates-api-openapi.yml
  type: openapi
- name: organizationsApi
  url: ../openapi/red-hat-organizations-api-openapi.yml
  type: openapi
workflows:
- workflowId: build-inventory-and-template
  summary: Resolve an org, create an inventory, create a template, and launch a job.
  description: >-
    Lists organizations, creates an inventory in the first one, creates a job
    template referencing that inventory and a project/playbook, and launches an
    initial job.
  inputs:
    type: object
    required:
    - token
    - inventoryName
    - templateName
    - project
    - playbook
    properties:
      token:
        type: string
        description: OAuth2 bearer token for the Automation Platform API.
      inventoryName:
        type: string
        description: The name for the new inventory.
      inventoryDescription:
        type: string
        description: A description for the new inventory.
      templateName:
        type: string
        description: The name for the new job template.
      project:
        type: integer
        description: The id of the project supplying the playbook.
      playbook:
        type: string
        description: The playbook file name to run.
  steps:
  - stepId: resolveOrganization
    description: >-
      List organizations and capture the id of the first one to own the new
      inventory.
    operationId: listOrganizations
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      organizationId: $response.body#/results/0/id
  - stepId: createInventory
    description: >-
      Create a new inventory within the resolved organization.
    operationId: createInventory
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.inventoryName
        description: $inputs.inventoryDescription
        organization: $steps.resolveOrganization.outputs.organizationId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      inventoryId: $response.body#/id
  - stepId: createTemplate
    description: >-
      Create a job template bound to the new inventory and the supplied project
      and playbook.
    operationId: createJobTemplate
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.templateName
        job_type: run
        inventory: $steps.createInventory.outputs.inventoryId
        project: $inputs.project
        playbook: $inputs.playbook
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      templateId: $response.body#/id
  - stepId: launchInitialJob
    description: >-
      Launch an initial job from the new template to validate that the inventory
      and template are wired up correctly.
    operationId: launchJobTemplate
    parameters:
    - name: id
      in: path
      value: $steps.createTemplate.outputs.templateId
    - name: Authorization
      in: header
      value: Bearer $inputs.token
    requestBody:
      contentType: application/json
      payload:
        inventory: $steps.createInventory.outputs.inventoryId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      jobId: $response.body#/id
      status: $response.body#/status
  outputs:
    inventoryId: $steps.createInventory.outputs.inventoryId
    templateId: $steps.createTemplate.outputs.templateId
    jobId: $steps.launchInitialJob.outputs.jobId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/red-hat-aap-build-inventory-and-template-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.