Red Hat Enterprise Linux 8 Playbooks API

The Playbooks API from Red Hat Enterprise Linux 8 — 1 operation(s) for playbooks.

GitHub OpenAPI

Operations 1

GET /playbooks/templates/{rule_id} Get an Ansible Playbook template for CVEs with security rules #

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-playbooks-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-playbooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vulnerability Engine Manager Playbooks API
  version: 2.85.4
servers:
- url: /api/vulnerability/v1
tags:
- name: Playbooks
paths:
  /playbooks/templates/{rule_id}:
    get:
      summary: Get an Ansible Playbook template for CVEs with security rules
      description: This returns an Ansible playbook template for a given rule identification number. Use this endpoint to return an Ansible playbook template for a given rule error key. The template is used to remediate issues on your system.
      operationId: manager.playbook_handler.GetTemplate.get
      x-methodName: getPlaybookTemplate
      security:
      - ApiKeyAuth: []
      - BasicAuth: []
      responses:
        '200':
          description: Playbook template response
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/PlaybookTemplate'
        '404':
          description: Given rule id does not exist.
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/Errors'
      parameters:
      - in: path
        name: rule_id
        description: Insights security rule ID.
        required: true
        schema:
          type: string
        example: CVE_2017_8779_rpc|CVE_2017_8779_WARN
      tags:
      - Playbooks
components:
  schemas:
    Errors:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                oneOf:
                - type: string
                  description: Error detail.
                  example: Record not found.
                - type: object
                  description: Returned with RBAC (user permissions) related issue
                  properties:
                    msg:
                      type: string
                      description: Error detail related to RBAC problem
                    permissions:
                      type: array
                      items:
                        type: string
                      description: Array with RBAC permissions of user
              status:
                type: string
                description: String representation of HTTP status code.
                example: 404
            required:
            - detail
            - status
          minItems: 1
      required:
      - errors
    PlaybookTemplate:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              description:
                type: string
                description: Playbook template description.
                example: Fix issues caused by CVE_2017_6074_kernel|KERNEL_CVE_2017_6074.
              play:
                type: string
                description: Actual playbook template.
              version:
                type: string
                description: Revision of the playbook template.
                example: 93a1ced8a259666f0505cd20b7cb8e7a1c65b868
              reboot_required:
                type:
                - boolean
                - 'null'
                description: Indicator whter reboot is required to mitigate vulnerability.
                example: false
              resolution_type:
                type: string
                description: Type of the resolution provided by playbook.
            required:
            - description
            - play
            - version
            - resolution_type
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: Username and password login.
      x-basicInfoFunc: manager.base.basic_auth
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-rh-identity
      description: Identity header provided by 3scale (for non-prod testing only).
      x-apikeyInfoFunc: manager.base.auth