Red Hat Enterprise Linux 8 Templates API

The Templates API from Red Hat Enterprise Linux 8 — 4 operation(s) for templates.

GitHub OpenAPI

Operations 5

GET /templates Show all templates for an account #
DELETE /templates/systems Remove systems from template #
PATCH /templates/{template_id}/subscribed-systems Add a system to a template #
GET /templates/{template_id}/systems Show me all systems belonging to a template #
PATCH /templates/{template_id}/systems Add systems to a template #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/red-hat-enterprise-linux-8:red-hat-enterprise-linux-8-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

red-hat-enterprise-linux-8-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  description: 'API of the Patch application on console.redhat.com


    Syntax of the `filter[name]` query parameters is described in Filters documentation'
  license:
    name: GPLv3
    url: https://www.gnu.org/licenses/gpl-3.0.en.html
  title: Patchman-engine Templates API
  version: v3.8.417
servers:
- url: /api/patch/v3
tags:
- name: Templates
paths:
  /templates:
    get:
      operationId: listTemplate
      parameters:
      - description: Limit for paging
        in: query
        name: limit
        schema:
          maximum: 100
          minimum: 1
          type: integer
      - description: Offset for paging
        in: query
        name: offset
        schema:
          type: integer
      - description: Sort field
        in: query
        name: sort
        schema:
          enum:
          - id
          - name
          - systems
          - published
          - last_edited
          type: string
      - description: Find matching text
        in: query
        name: search
        schema:
          type: string
      - description: 'Filter '
        in: query
        name: filter[id]
        schema:
          type: string
      - description: Filter
        in: query
        name: filter[name]
        schema:
          type: string
      - description: Filter
        in: query
        name: filter[systems]
        schema:
          type: string
      - description: Tag filter
        explode: true
        in: query
        name: tags
        schema:
          items:
            type: string
          type: array
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.TemplatesResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Internal Server Error
      security:
      - RhIdentity: []
      summary: Show all templates for an account
      tags:
      - Templates
  /templates/systems:
    delete:
      operationId: removeTemplateSystems
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/controllers.TemplateSystemsUpdateRequest'
        description: Request body
        required: true
      responses:
        '200':
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Internal Server Error
      security:
      - RhIdentity: []
      summary: Remove systems from template
      x-codegen-request-body-name: body
      tags:
      - Templates
  /templates/{template_id}/subscribed-systems:
    patch:
      description: Add a system authenticated by its client identity certificate to a template
      operationId: addTemplateSubscribedSystem
      parameters:
      - description: Template ID
        in: path
        name: template_id
        required: true
        schema:
          type: string
      - description: Satellite subscription-manager UUID; also requires owner match
        in: header
        name: X-Forwarded-Identity
        schema:
          type: string
      responses:
        '200':
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Bad Request
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Internal Server Error
      security:
      - RhIdentity: []
      summary: Add a system to a template
      tags:
      - Templates
  /templates/{template_id}/systems:
    get:
      description: Show me all systems applicable to a template
      operationId: listTemplateSystems
      parameters:
      - description: Template ID
        in: path
        name: template_id
        required: true
        schema:
          type: string
      - description: Limit for paging
        in: query
        name: limit
        schema:
          maximum: 100
          minimum: 1
          type: integer
      - description: Offset for paging
        in: query
        name: offset
        schema:
          type: integer
      - description: Sort field
        in: query
        name: sort
        schema:
          enum:
          - id
          - display_name
          - os
          - installable_rhsa_count
          - installable_rhba_count
          - installable_rhea_count
          - installable_other_count
          - applicable_rhsa_count
          - applicable_rhba_count
          - applicable_rhea_count
          - applicable_other_count
          - last_upload
          - groups
          type: string
      - description: Find matching text
        in: query
        name: search
        schema:
          type: string
      - description: Filter
        in: query
        name: filter[display_name]
        schema:
          type: string
      - description: Filter
        in: query
        name: filter[os]
        schema:
          type: string
      - description: Tag filter
        explode: true
        in: query
        name: tags
        schema:
          items:
            type: string
          type: array
        style: form
      - description: Filter systems by inventory groups
        explode: true
        in: query
        name: filter[group_name]
        schema:
          items:
            type: string
          type: array
        style: form
      - description: Filter only SAP systems
        in: query
        name: filter[system_profile][sap_system]
        schema:
          type: boolean
      - description: Filter systems by their SAP SIDs
        explode: true
        in: query
        name: filter[system_profile][sap_sids]
        schema:
          items:
            type: string
          type: array
        style: form
      - description: Filter systems by ansible
        in: query
        name: filter[system_profile][ansible]
        schema:
          type: string
      - description: Filter systems by ansible version
        in: query
        name: filter[system_profile][ansible][controller_version]
        schema:
          type: string
      - description: Filter systems by mssql version
        in: query
        name: filter[system_profile][mssql]
        schema:
          type: string
      - description: Filter systems by mssql version
        in: query
        name: filter[system_profile][mssql][version]
        schema:
          type: string
      - description: Filter systems by crowdstrike
        in: query
        name: filter[system_profile][crowdstrike]
        schema:
          type: string
      - description: Filter systems by ibm_db2
        in: query
        name: filter[system_profile][ibm_db2]
        schema:
          type: string
      - description: Filter systems by intersystems
        in: query
        name: filter[system_profile][intersystems]
        schema:
          type: string
      - description: Filter systems by oracle_db
        in: query
        name: filter[system_profile][oracle_db]
        schema:
          type: string
      - description: Filter systems by rhel_ai
        in: query
        name: filter[system_profile][rhel_ai]
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/controllers.TemplateSystemsResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Internal Server Error
      security:
      - RhIdentity: []
      summary: Show me all systems belonging to a template
      tags:
      - Templates
    patch:
      operationId: updateTemplateSystems
      parameters:
      - description: Template ID
        in: path
        name: template_id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/controllers.TemplateSystemsUpdateRequest'
        description: Request body
        required: true
      responses:
        '200':
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/utils.ErrorResponse'
          description: Internal Server Error
      security:
      - RhIdentity: []
      summary: Add systems to a template
      x-codegen-request-body-name: body
      tags:
      - Templates
components:
  schemas:
    controllers.TemplateItem:
      properties:
        attributes:
          allOf:
          - $ref: '#/components/schemas/controllers.TemplateItemAttributes'
          description: Additional template attributes
          type: object
        id:
          description: Unique template id
          type: string
        type:
          description: Document type name
          type: string
      type: object
    controllers.TemplateSystemsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/controllers.TemplateSystemItem'
          type: array
        links:
          $ref: '#/components/schemas/controllers.Links'
        meta:
          $ref: '#/components/schemas/controllers.ListMeta'
      type: object
    controllers.ListMeta:
      properties:
        filter:
          additionalProperties:
            $ref: '#/components/schemas/controllers.FilterData'
          description: Used filters
          type: object
        has_systems:
          description: Show whether customer has some registered systems
          type: boolean
        limit:
          description: Used response limit (page size) - pagination
          example: 20
          type: integer
        offset:
          description: Used response offset - pagination
          example: 0
          type: integer
        search:
          description: Used search terms
          example: kernel
          type: string
        sort:
          description: Used sorting fields
          example:
          - name
          items:
            type: string
          type: array
        subtotals:
          additionalProperties:
            type: integer
          description: Some subtotals used by some endpoints
          type: object
        total_items:
          description: Total items count to return
          example: 1000
          type: integer
      type: object
    controllers.TemplatesMeta:
      properties:
        creators:
          items:
            type: string
          type: array
        filter:
          additionalProperties:
            $ref: '#/components/schemas/controllers.FilterData'
          description: Used filters
          type: object
        has_systems:
          description: Show whether customer has some registered systems
          type: boolean
        limit:
          description: Used response limit (page size) - pagination
          example: 20
          type: integer
        offset:
          description: Used response offset - pagination
          example: 0
          type: integer
        search:
          description: Used search terms
          example: kernel
          type: string
        sort:
          description: Used sorting fields
          example:
          - name
          items:
            type: string
          type: array
        subtotals:
          additionalProperties:
            type: integer
          description: Some subtotals used by some endpoints
          type: object
        total_items:
          description: Total items count to return
          example: 1000
          type: integer
      type: object
    utils.ErrorResponse:
      properties:
        error:
          type: string
      type: object
    controllers.TemplateSystemItem:
      properties:
        attributes:
          $ref: '#/components/schemas/controllers.TemplateSystemAttributes'
        inventory_id:
          description: Template system inventory ID (uuid format)
          type: string
        type:
          description: Document type name
          type: string
      type: object
    controllers.TemplatesResponse:
      properties:
        data:
          description: Template items
          items:
            $ref: '#/components/schemas/controllers.TemplateItem'
          type: array
        links:
          allOf:
          - $ref: '#/components/schemas/controllers.Links'
          description: Pagination links
          type: object
        meta:
          allOf:
          - $ref: '#/components/schemas/controllers.TemplatesMeta'
          description: Generic response fields (pagination params, filters etc.)
          type: object
      type: object
    controllers.TemplateSystemsUpdateRequest:
      properties:
        systems:
          description: List of inventory IDs to have templates removed
          example:
          - system1-uuid
          - ' system2-uuid'
          - ' ...'
          items:
            type: string
          type: array
      type: object
    controllers.TemplateSystemAttributes:
      properties:
        applicable_other_count:
          type: integer
        applicable_rhba_count:
          type: integer
        applicable_rhea_count:
          type: integer
        applicable_rhsa_count:
          type: integer
        display_name:
          type: string
        groups:
          items:
            $ref: '#/components/schemas/controllers.SystemGroup'
          type: array
        installable_other_count:
          type: integer
        installable_rhba_count:
          type: integer
        installable_rhea_count:
          type: integer
        installable_rhsa_count:
          type: integer
        last_upload:
          type: string
        os:
          type: string
        rhsm:
          type: string
        tags:
          items:
            $ref: '#/components/schemas/controllers.SystemTag'
          type: array
        workspace_id:
          type: string
        workspace_name:
          type: string
      type: object
    controllers.SystemTag:
      properties:
        key:
          type: string
        namespace:
          type: string
        value:
          type: string
      type: object
    controllers.SystemGroup:
      properties:
        id:
          type: string
        name:
          type: string
      type: object
    controllers.TemplateItemAttributes:
      properties:
        creator:
          type: string
        last_edited:
          type: string
        name:
          description: Template name
          type: string
        published:
          description: Created and updated dates
          type: string
        systems:
          description: Count of the systems associated with the template
          type: integer
      type: object
    controllers.FilterData:
      properties:
        op:
          type: string
        values:
          items:
            type: string
          type: array
      type: object
    controllers.Links:
      properties:
        first:
          example: /link/to/the/first
          type: string
        last:
          example: /link/to/the/last
          type: string
        next:
          example: /link/to/the/next
          type: string
        previous:
          example: /link/to/the/previous
          type: string
      type: object
  securitySchemes:
    RhIdentity:
      in: header
      name: x-rh-identity
      type: apiKey
x-original-swagger-version: '2.0'