Red Hat Enterprise Linux 8 Hostack API

The hostack API from Red Hat Enterprise Linux 8 — 2 operation(s) for hostack.

GitHub OpenAPI

Operations 5

GET /api/insights/v1/hostack/ Hostack list #
POST /api/insights/v1/hostack/ Hostack create #
GET /api/insights/v1/hostack/{id}/ Display a specific acknowledgement (disabling) of a rule on a system #
PUT /api/insights/v1/hostack/{id}/ Hostack update #
DELETE /api/insights/v1/hostack/{id}/ Hostack destroy #

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-hostack-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-hostack-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Insights Advisor Hostack API
  version: 1.0.1
  description: The API of the Advisor project in Insights
servers:
- url: https://console.redhat.com/
  description: The API of the Advisor project in Insights
tags:
- name: hostack
paths:
  /api/insights/v1/hostack/:
    get:
      operationId: hostack_list
      description: 'HostAcks acknowledge (and therefore hide) a rule from view in an

        account for a specific system.


        Hostacks are retrieved, edited and deleted by the ''id'' field.'
      parameters:
      - in: query
        name: filter[system_profile][sap_sids][contains]
        schema:
          type: array
          items:
            type: string
            format: regex
            pattern: ^[A-Z]..$
        description: Are there systems which contain these SAP SIDs?
        style: form
      - in: query
        name: groups
        schema:
          type: array
          items:
            type: string
        description: List of Inventory host group names
        style: form
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - in: query
        name: rule_id
        schema:
          type: array
          items:
            type: string
            format: regex
            pattern: \w+(,\w+)*
        description: Display host acknowledgement of this/these rules
        style: form
      - in: query
        name: tags
        schema:
          type: array
          items:
            type: string
            format: regex
            pattern: ^[^/]+/[^=]+(=.*)?$
        description: Tags have a namespace and key, with an optional value, in the form namespace/key=value or namespace/key
        style: form
      - in: query
        name: workload
        schema:
          type: array
          items:
            type: string
            enum:
            - ansible
            - crowdstrike
            - ibm_db2
            - intersystems
            - mssql
            - oracle_db
            - rhel_ai
            - sap
            - satellite
        description: 'Filter systems by workload type. Multiple workloads are OR''d together. Valid workloads: sap, ansible, mssql, crowdstrike, ibm_db2, intersystems, oracle_db, rhel_ai, satellite'
        style: form
      tags:
      - hostack
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedHostAckList'
          description: ''
      summary: Hostack list
      x-summary-source: derived
    post:
      operationId: hostack_create
      description: 'Add an acknowledgement for a rule, by rule ID, system, and account.


        Return the new hostack. If there''s already an acknowledgement of

        this rule by this account for a system, then return that. This does

        not take an ''id'' number.'
      tags:
      - hostack
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HostAckInput'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/HostAckInput'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/HostAckInput'
        required: true
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostAck'
          description: ''
      summary: Hostack create
      x-summary-source: derived
  /api/insights/v1/hostack/{id}/:
    get:
      operationId: hostack_retrieve
      description: 'Display who disabled a rule on a system, when, and their justification

        for disabling it. Host acks are selected by their ID number.'
      summary: Display a specific acknowledgement (disabling) of a rule on a system
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this host ack.
        required: true
      tags:
      - hostack
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostAck'
          description: ''
    put:
      operationId: hostack_update
      description: 'Update the justification for this host acknowledgement.


        The justification is taken from the request body. The created_by

        field is taken from the username in the x-rh-identity field, and the

        updated_at field is set to the current time.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this host ack.
        required: true
      tags:
      - hostack
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HostAckJustification'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/HostAckJustification'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/HostAckJustification'
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostAckJustification'
          description: ''
      summary: Hostack update
      x-summary-source: derived
    delete:
      operationId: hostack_destroy
      description: 'Delete an acknowledgement for a rule, for a system, for an account, by its ID.


        Takes the hostack ID (given in the hostack list) as an identifier.'
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this host ack.
        required: true
      tags:
      - hostack
      security:
      - x-rh-identity: []
      responses:
        '204':
          content:
            application/json:
              schema:
                type: string
          description: ''
      summary: Hostack destroy
      x-summary-source: derived
components:
  schemas:
    HostAck:
      type: object
      description: 'Ignore reports of this rule on this system for this account.  This

        ''ack''nowledges (or hides) this rule from affecting this rule on this

        system.'
      properties:
        id:
          type: integer
          readOnly: true
        rule:
          type: string
          description: Rule ID from Insights
        system_uuid:
          type: string
          format: uuid
        justification:
          type: string
          maxLength: 255
        created_by:
          type: string
          readOnly: true
          description: The username that created this acknowledgement
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        display_name:
          type:
          - string
          - 'null'
          readOnly: true
      required:
      - created_at
      - created_by
      - display_name
      - id
      - rule
      - system_uuid
      - updated_at
    HostAckInput:
      type: object
      description: 'Ignore reports of this rule on this system for this account.


        Use this when creating a new HostAck.'
      properties:
        rule:
          type: string
          description: Rule ID from Insights
        system_uuid:
          type: string
          format: uuid
        justification:
          type: string
          maxLength: 255
      required:
      - rule
      - system_uuid
    HostAckJustification:
      type: object
      description: Just modify the justification on a Host Ack.
      properties:
        id:
          type: integer
          readOnly: true
        justification:
          type: string
          maxLength: 255
      required:
      - id
    PaginatedHostAckList:
      type: object
      properties:
        meta:
          type: object
          properties:
            count:
              type: integer
              example: 169
          required:
          - count
        links:
          type: object
          properties:
            first:
              type:
              - string
              - 'null'
              format: uri
            previous:
              type:
              - string
              - 'null'
              format: uri
            next:
              type:
              - string
              - 'null'
              format: uri
            last:
              type:
              - string
              - 'null'
              format: uri
        data:
          type: array
          items:
            $ref: '#/components/schemas/HostAck'
  securitySchemes:
    x-rh-identity:
      type: apiKey
      in: header
      name: x-rh-identity