Red Hat Enterprise Linux 8 Tags API

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

GitHub OpenAPI

Operations 1

GET /tags Get the active host tags for a given account #

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-tags-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-tags-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: REST interface for the Insights Platform Host Inventory application.
  title: Insights Host Inventory REST Interface Tags API
  version: 1.0.0
servers:
- description: API server
  url: /api/inventory/v1
tags:
- name: Tags
paths:
  /tags:
    get:
      description: 'Required permissions: inventory:hosts:read'
      operationId: api.tag.get_tags
      parameters:
      - $ref: '#/components/parameters/tagsParam'
      - $ref: '#/components/parameters/tagsOrderByParam'
      - $ref: '#/components/parameters/tagsOrderHowParam'
      - $ref: '#/components/parameters/perPageParam'
      - $ref: '#/components/parameters/pageParam'
      - $ref: '#/components/parameters/stalenessParam'
      - $ref: '#/components/parameters/searchParam'
      - $ref: '#/components/parameters/displayName'
      - $ref: '#/components/parameters/fqdn'
      - $ref: '#/components/parameters/hostnameOrId'
      - $ref: '#/components/parameters/insightsId'
      - $ref: '#/components/parameters/providerId'
      - $ref: '#/components/parameters/providerType'
      - $ref: '#/components/parameters/updatedStart'
      - $ref: '#/components/parameters/updatedEnd'
      - $ref: '#/components/parameters/lastCheckInStart'
      - $ref: '#/components/parameters/lastCheckInEnd'
      - $ref: '#/components/parameters/groupNameListParam'
      - $ref: '#/components/parameters/workspaceNameListParam'
      - $ref: '#/components/parameters/groupIdListParam'
      - $ref: '#/components/parameters/workspaceIdListParam'
      - $ref: '#/components/parameters/registered_with'
      - $ref: '#/components/parameters/systemTypeParam'
      - $ref: '#/components/parameters/filter_param'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActiveTags'
          description: Tags
        '400':
          description: Invalid request.
        '404':
          $ref: '#/components/responses/PageOutOfBounds'
      security:
      - ApiKeyAuth: []
      summary: Get the active host tags for a given account
      tags:
      - Tags
components:
  parameters:
    providerId:
      description: Filter by provider_id
      in: query
      name: provider_id
      required: false
      schema:
        type: string
    workspaceIdListParam:
      description: Filter by workspace ID (UUID format)
      in: query
      name: workspace_id
      required: false
      schema:
        items:
          $ref: '#/components/schemas/NonStrictUUID'
        type: array
    lastCheckInStart:
      description: Only show hosts last checked in after the given date
      in: query
      name: last_check_in_start
      schema:
        format: date-time
        type: string
    updatedEnd:
      description: Only show hosts last modified before the given date
      in: query
      name: updated_end
      schema:
        format: date-time
        type: string
    fqdn:
      description: Filter by FQDN (case-insensitive)
      in: query
      name: fqdn
      required: false
      schema:
        type: string
    searchParam:
      description: Used for searching tags and sap_sids that match the given search string. For searching tags, a tag's namespace, key, and/or value is used for matching.
      in: query
      name: search
      required: false
      schema:
        type: string
    groupNameListParam:
      deprecated: true
      description: Filter by group name
      in: query
      name: group_name
      required: false
      schema:
        items:
          type: string
        type: array
    tagsOrderHowParam:
      description: Direction of the ordering (case-insensitive). Valid values are ASC (default) and DESC.
      in: query
      name: order_how
      required: false
      schema:
        $ref: '#/components/schemas/OrderHow'
    insightsId:
      description: Filter by insights_id
      in: query
      name: insights_id
      required: false
      schema:
        format: uuid
        type: string
    stalenessParam:
      description: 'Culling states of the hosts. Default: fresh, stale and stale_warning'
      in: query
      name: staleness
      required: false
      schema:
        default:
        - fresh
        - stale
        - stale_warning
        items:
          enum:
          - fresh
          - stale
          - stale_warning
          - unknown
          type: string
        type: array
    tagsParam:
      description: Filters systems by tag(s). Specify multiple tags as a comma-separated list (e.g. insights-client/security=strict,env/type=prod). Tags with the same namespace and key (their identity) are OR'd (match any value); tags with different identities are AND'd (must match all).
      in: query
      name: tags
      required: false
      schema:
        items:
          pattern: ^([^=/]+/)?(?!.*/=)[^=]+(=[^=]+)?$
          type: string
        type: array
    providerType:
      description: Filter by provider_type
      in: query
      name: provider_type
      required: false
      schema:
        enum:
        - alibaba
        - aws
        - azure
        - discovery
        - gcp
        - ibm
        type: string
    perPageParam:
      description: A number of items to return per page.
      in: query
      name: per_page
      required: false
      schema:
        default: 50
        maximum: 100
        minimum: 1
        type: integer
    tagsOrderByParam:
      description: Ordering field name
      in: query
      name: order_by
      required: false
      schema:
        default: tag
        enum:
        - tag
        - count
        type: string
    pageParam:
      description: A page number of the items to return.
      in: query
      name: page
      required: false
      schema:
        default: 1
        maximum: 21474837
        minimum: 1
        type: integer
    workspaceNameListParam:
      description: Filter by workspace name
      in: query
      name: workspace_name
      required: false
      schema:
        items:
          type: string
        type: array
    updatedStart:
      description: Only show hosts last modified after the given date
      in: query
      name: updated_start
      schema:
        format: date-time
        type: string
    displayName:
      description: Filter by display_name (case-insensitive)
      in: query
      name: display_name
      required: false
      schema:
        type: string
    filter_param:
      description: 'Filters hosts based on system_profile fields. For example: <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;{"system_profile": {"workloads": {"sap": {"sap_system": {"eq": "true"}}}}} <br /><br /> which equates to the URL param: <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;"?filter[system_profile][workloads][sap][sap_system][eq]=true" <br /><br /> To get "edge" hosts, use this explicit filter: <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;{"system_profile": {"host_type": {"eq": "edge"}}} <br /><br /> which equates to the URL param: <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;"?filter[system_profile][host_type][eq]=edge" <br /><br /> To get hosts with a specific operating system, use this explicit filter: <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;{"system_profile": {"operating_system": {"name": {"eq": "rhel"}}}} <br /><br /> which equates to the URL param: <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;"?filter[system_profile][operating_system][name][eq]=rhel" <br /><br /> To get hosts with a specific operating system version, use this explicit filter: <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;{"system_profile": {"operating_system": {"rhel": {"version": {"eq": "9"}}}}} <br /><br /> which equates to the URL param: <br /><br /> &nbsp;&nbsp;&nbsp;&nbsp;"?filter[system_profile][operating_system][rhel][version][eq]=9"'
      example: {}
      explode: true
      in: query
      name: filter
      required: false
      schema:
        $ref: '#/components/schemas/SystemProfileNestedObject'
      style: deepObject
    groupIdListParam:
      deprecated: true
      description: Filter by group ID (UUID format)
      in: query
      name: group_id
      required: false
      schema:
        items:
          $ref: '#/components/schemas/NonStrictUUID'
        type: array
    systemTypeParam:
      description: Filters systems by type
      in: query
      name: system_type
      required: false
      schema:
        items:
          enum:
          - conventional
          - bootc
          - edge
          - cluster
          type: string
        type: array
    lastCheckInEnd:
      description: Only show hosts last checked in before the given date
      in: query
      name: last_check_in_end
      schema:
        format: date-time
        type: string
    registered_with:
      description: Filters out any host not registered by the specified reporters
      in: query
      name: registered_with
      required: false
      schema:
        items:
          enum:
          - insights
          - yupana
          - satellite
          - discovery
          - puptoo
          - rhsm-conduit
          - cloud-connector
          - '!yupana'
          - '!satellite'
          - '!discovery'
          - '!puptoo'
          - '!rhsm-conduit'
          - '!cloud-connector'
          type: string
        type: array
    hostnameOrId:
      description: Filter by display_name, fqdn, id (case-insensitive)
      in: query
      name: hostname_or_id
      required: false
      schema:
        type: string
  schemas:
    PaginationOut:
      properties:
        count:
          $ref: '#/components/schemas/Count'
        page:
          $ref: '#/components/schemas/Page'
        per_page:
          $ref: '#/components/schemas/PerPage'
        total:
          $ref: '#/components/schemas/Total'
      required:
      - count
      - page
      - per_page
      - total
      type: object
    PerPage:
      description: The number of items to return per page
      example: 50
      type: integer
    Page:
      description: The page number
      example: 1
      type: integer
    SystemProfileNestedObject:
      additionalProperties: true
      description: An arbitrary object that allows any additional properties.
      type: object
    NonStrictUUID:
      example: ba6decfc-1956-4430-ab81-4bf8f70e8cef
      format: uuid
      pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$
      type: string
    ActiveTags:
      allOf:
      - $ref: '#/components/schemas/PaginationOut'
      - properties:
          results:
            items:
              description: Information about a host tag
              properties:
                count:
                  description: The number of hosts with the given tag. If the value is null this indicates that the count is unknown.
                  type:
                  - integer
                  - 'null'
                tag:
                  $ref: '#/components/schemas/StructuredTag'
              required:
              - tag
              - count
              title: ActiveTag
              type: object
            type: array
        required:
        - results
        type: object
      example:
        count: 3
        page: 1
        per_page: 50
        results:
        - count: 3
          tag:
            key: env
            namespace: Sat
            value: prod
        - count: 1
          tag:
            key: region
            namespace: aws
            value: us-east-1
        - count: 1
          tag:
            key: web
            namespace: insights-client
            value: null
        total: 3
      title: Host data
    Total:
      description: Total number of items
      example: 1
      type:
      - integer
      - 'null'
    Count:
      description: The number of items on the current page
      example: 1
      type: integer
    StructuredTag:
      properties:
        key:
          type: string
        namespace:
          type:
          - string
          - 'null'
        value:
          type:
          - string
          - 'null'
      type: object
    OrderHow:
      pattern: ^([Aa][Ss][Cc])|([Dd][Ee][Ss][Cc])$
      type: string
    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
    utils.ErrorResponse:
      properties:
        error:
          type: string
      type: object
    controllers.SystemTagsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/controllers.SystemTagItem'
          type: array
        links:
          $ref: '#/components/schemas/controllers.Links'
        meta:
          $ref: '#/components/schemas/controllers.ListMeta'
      type: object
    controllers.SystemTag:
      properties:
        key:
          type: string
        namespace:
          type: string
        value:
          type: string
      type: object
    controllers.SystemTagItem:
      properties:
        count:
          type: integer
        tag:
          $ref: '#/components/schemas/controllers.SystemTag'
      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
  responses:
    PageOutOfBounds:
      description: Requested page is outside of the range of available pages
  securitySchemes:
    ApiKeyAuth:
      description: 'Base64-encoded JSON identity header provided by 3Scale. Contains an org_id of the user issuing the request. Format of the JSON: {"identity": {"org_id": "12345678"}}'
      in: header
      name: x-rh-identity
      type: apiKey
      x-apikeyInfoFunc: app.auth.authentication_header_handler
    BearerAuth:
      scheme: bearer
      type: http
      x-bearerInfoFunc: app.auth.bearer_token_handler
    RhIdentity:
      in: header
      name: x-rh-identity
      type: apiKey
externalDocs:
  description: Using APIs to configure Red Hat Lightspeed services
  url: https://docs.redhat.com/en/documentation/red_hat_lightspeed/1-latest/html-single/using_apis_to_configure_red_hat_lightspeed_services/index