Red Hat Enterprise Linux 8 Resource Types API

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

GitHub OpenAPI

Operations 2

GET /resource-types Get the list of resource types #
GET /resource-types/inventory-groups Get the list of inventory groups in resource-types format #

Documentation

Specifications

Schemas & Data

Other Resources

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-resource-types-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-resource-types-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 Resource Types API
  version: 1.0.0
servers:
- description: API server
  url: /api/inventory/v1
tags:
- name: resource-types
paths:
  /resource-types:
    get:
      description: 'Returns the list of available RBAC resource types.


        Required permissions: rbac:*:*'
      operationId: api.resource_type.get_resource_type_list
      parameters:
      - $ref: '#/components/parameters/resourceTypesPerPageParam'
      - $ref: '#/components/parameters/pageParam'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceTypesQueryOutput'
          description: Successfully read the resource types list.
        '400':
          description: Resource types not found.
      security:
      - ApiKeyAuth: []
      summary: Get the list of resource types
      tags:
      - resource-types
  /resource-types/inventory-groups:
    get:
      description: 'Returns the list of groups in the current account.


        Required permissions: rbac:*:*'
      operationId: api.resource_type.get_resource_type_groups_list
      parameters:
      - $ref: '#/components/parameters/groupName'
      - $ref: '#/components/parameters/resourceTypesPerPageParam'
      - $ref: '#/components/parameters/pageParam'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceTypesGroupsQueryOutput'
          description: Successfully read the resource-types groups list.
        '400':
          description: Groups not found.
      security:
      - ApiKeyAuth: []
      summary: Get the list of inventory groups in resource-types format
      tags:
      - resource-types
components:
  schemas:
    GroupOut:
      description: Data of a single group belonging to an account.
      properties:
        account:
          $ref: '#/components/schemas/AccountNumber'
        created:
          description: A timestamp when the entry was created.
          format: date-time
          type: string
        id:
          $ref: '#/components/schemas/GroupId'
        name:
          $ref: '#/components/schemas/GroupName'
        org_id:
          $ref: '#/components/schemas/OrgId'
        ungrouped:
          description: Whether the group is the "ungrouped hosts" group
          type: boolean
        updated:
          description: A timestamp when the entry was last updated.
          format: date-time
          type: string
      title: Group Out Properties
      type: object
    AccountNumber:
      deprecated: true
      description: A Red Hat Account number that owns the host.
      example: '000102'
      type:
      - string
      - 'null'
    ResourceTypesGroupsQueryOutput:
      allOf:
      - $ref: '#/components/schemas/ResourceTypesPaginationOut'
      - properties:
          data:
            description: Actual group search query result entries.
            items:
              $ref: '#/components/schemas/GroupOutWithHostCount'
            type: array
        required:
        - data
        type: object
      description: A paginated group search query result with group entries and their Inventory metadata in paginated resource-types response format.
      example:
        data:
        - account: null
          created: '2023-03-01T16:04:02.588Z'
          host_count: 3
          id: ba6decfc-1956-4430-ab81-4bf8f70e8cef
          name: sre-group
          org_id: '000102'
          ungrouped: false
          updated: '2023-03-01T16:04:02.588Z'
        links:
          first: /inventory/v1/resource-types/inventory-groups?per_page=100&page=1
          last: /inventory/v1/resource-types/inventory-groups?per_page=100&page=1
          next: null
          previous: null
        meta:
          count: 1
      title: An Inventory Groups query result in resource-types response format
      type: object
    ResourceTypesQueryOutput:
      allOf:
      - $ref: '#/components/schemas/ResourceTypesPaginationOut'
      - properties:
          data:
            description: Actual resource-types object data.
            items:
              $ref: '#/components/schemas/ResourceTypesOut'
            type: array
        required:
        - data
        type: object
      description: A paginated list of resource-types RBAC objects.
      example:
        data:
        - count: 1
          path: /inventory/v1/resource-types/inventory-groups
          value: inventory-groups
        links:
          first: /inventory/v1/resource-types?per_page=10&page=1
          last: /inventory/v1/resource-types?per_page=10&page=1
          next: null
          previous: null
        meta:
          count: 1
      title: A resource-types query result
      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
    GroupOutWithHostCount:
      allOf:
      - $ref: '#/components/schemas/GroupOut'
      - properties:
          host_count:
            $ref: '#/components/schemas/HostCount'
      description: Data of a single group belonging to an account.
      example:
        account: null
        created: '2023-03-01T16:04:02.588Z'
        host_count: 3
        id: ba6decfc-1956-4430-ab81-4bf8f70e8cef
        name: sre-group
        org_id: '000102'
        ungrouped: false
        updated: '2023-03-01T16:04:02.588Z'
      title: Group properties with host count
      type: object
    GroupId:
      $ref: '#/components/schemas/NonStrictUUID'
      description: A durable and reliable platform-wide group identifier. Applications should use this identifier to reference groups.
    OrgId:
      description: The Org ID of the tenant that owns the host.
      example: '000102'
      type: string
    GroupName:
      description: A group’s human-readable name. Must contain only letters, numbers, spaces, hyphens, and underscores.
      example: sre-group
      type: string
    ResourceTypesOut:
      description: Data describing a single resource-types RBAC object.
      properties:
        count:
          type: integer
        path:
          description: The path for the RBAC endpoint for the resource type
          type: string
        value:
          description: The name of the resource type
          type: string
      title: A resource type query result
      type: object
    ResourceTypesPaginationOut:
      properties:
        links:
          description: A collection of pagination links for resource-types endpoints
          properties:
            first:
              description: The URI path for the first page in the pagination
              type: string
            last:
              description: The URI path for the last page in the pagination
              type: string
            next:
              description: The URI path for the next page in the pagination
              type:
              - string
              - 'null'
            previous:
              description: The URI path for the previous page in the pagination
              type:
              - string
              - 'null'
          required:
          - first
          - previous
          - next
          - last
          type: object
        meta:
          description: The metadata for resource-types responses
          properties:
            count:
              description: The total number of objects returned by the query.
              type: integer
          required:
          - count
          type: object
      required:
      - meta
      - links
      type: object
    HostCount:
      description: The number of hosts associated with the group.
      example: 3
      type: integer
  parameters:
    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
    groupName:
      description: Filter by group name
      in: query
      name: name
      required: false
      schema:
        type: string
    resourceTypesPerPageParam:
      description: A number of items to return per page.
      in: query
      name: per_page
      required: false
      schema:
        default: 10
        maximum: 100
        minimum: 1
        type: integer
  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
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