Red Hat Enterprise Linux 8 Distribution API

The distribution API from Red Hat Enterprise Linux 8 — 3 operation(s) for distribution.

GitHub OpenAPI

Operations 3

GET /architectures/{distribution} get the architectures and their image types available for a given distribution #
GET /distributions get the distributions available to this user #
GET /distributions/{distro} Get details for a specific distribution #

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-distribution-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-distribution-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Service that relays image build requests
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  title: Image-builder service Distribution API
  version: '1.0'
servers:
- url: /api/image-builder/v1
- url: /api/image-builder/v1.0
tags:
- name: Distribution
paths:
  /architectures/{distribution}:
    get:
      operationId: getArchitectures
      parameters:
      - description: distribution for which to look up available architectures
        example: rhel-84
        in: path
        name: distribution
        required: true
        schema:
          $ref: '#/components/schemas/Distributions'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Architectures'
          description: a list of available architectures and their associated image types
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPErrorList'
          description: user is not allowed to build or query this distribution
      summary: get the architectures and their image types available for a given distribution
      tags:
      - Distribution
  /distributions:
    get:
      operationId: getDistributions
      parameters:
      - description: 'Kind of distributions to return. When set to ''bootc'', returns bootc/image-mode

          distributions (each with distro, name, type, arch, and reference). Defaults to classic distributions.

          '
        in: query
        name: kind
        schema:
          $ref: '#/components/schemas/DistributionKind'
      - description: 'Filter bootc distributions by distribution name. Only applies when kind=bootc.

          '
        in: query
        name: distro
        schema:
          example: rhel-10.0
          type: string
      - description: 'Filter bootc distributions by CPU architecture. Only applies when kind=bootc.

          '
        in: query
        name: arch
        schema:
          example: x86_64
          type: string
      - description: 'Filter bootc distributions by image type. Only applies when kind=bootc.

          '
        in: query
        name: type
        schema:
          example: aws
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DistributionsResponse'
          description: 'A list of distributions. The items in the array depend on the ''kind'' parameter.

            '
      summary: get the distributions available to this user
      tags:
      - Distribution
  /distributions/{distro}:
    get:
      description: Returns complete metadata for a distribution including architectures and image types
      operationId: getDistribution
      parameters:
      - description: Name of the distribution
        in: path
        name: distro
        required: true
        schema:
          example: rhel-9.6
          type: string
      - description: Filter by image type. Multiple values can be specified.
        in: query
        name: image_type
        schema:
          example:
          - ami
          - aws
          items:
            type: string
          type: array
      - description: Filter by architecture. Multiple values can be specified.
        in: query
        name: architecture
        schema:
          example:
          - x86_64
          - aarch64
          items:
            type: string
          type: array
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DistributionDetails'
          description: Distribution details
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPErrorList'
          description: Distribution not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPErrorList'
          description: Unexpected error occurred
      summary: Get details for a specific distribution
      tags:
      - Distribution
components:
  schemas:
    Disk:
      properties:
        minsize:
          $ref: '#/components/schemas/minsize'
        partitions:
          items:
            $ref: '#/components/schemas/Partition'
          type: array
        type:
          description: 'Type of the partition table

            '
          enum:
          - gpt
          - dos
          type: string
      required:
      - partitions
      type: object
      x-go-type: composer.Disk
    ArchitectureInfo:
      description: Architecture metadata from images library
      properties:
        image_types:
          additionalProperties:
            $ref: '#/components/schemas/ImageTypeInfo'
          description: Map of image type names to their details
          type: object
        name:
          description: Architecture name
          example: x86_64
          type: string
      required:
      - name
      type: object
      x-go-type: composer.ArchitectureInfo
    Distributions:
      description: 'List of all distributions that image builder supports. A user might not have access to

        restricted distributions.


        Restricted distributions include the RHEL nightlies and the Fedora distributions.

        '
      enum:
      - rhel-8
      - rhel-8-nightly
      - rhel-84
      - rhel-85
      - rhel-86
      - rhel-87
      - rhel-88
      - rhel-89
      - rhel-8.10
      - rhel-9
      - rhel-9-nightly
      - rhel-9.6-nightly
      - rhel-9.7-nightly
      - rhel-9.8-nightly
      - rhel-9.9-nightly
      - rhel-9.10-nightly
      - rhel-9-beta
      - rhel-90
      - rhel-91
      - rhel-92
      - rhel-93
      - rhel-94
      - rhel-95
      - rhel-9.6
      - rhel-9.7
      - rhel-9.8
      - rhel-9.9
      - rhel-10
      - rhel-10-nightly
      - rhel-10.0-nightly
      - rhel-10.1-nightly
      - rhel-10.2-nightly
      - rhel-10.3-nightly
      - rhel-10.4-nightly
      - rhel-10-beta
      - rhel-10.0
      - rhel-10.1
      - rhel-10.2
      - rhel-10.3
      - centos-9
      - centos-10
      - fedora-37
      - fedora-38
      - fedora-39
      - fedora-40
      - fedora-41
      - fedora-42
      - fedora-43
      - fedora-44
      - fedora-45
      - hummingbird
      type: string
    Architectures:
      items:
        $ref: '#/components/schemas/ArchitectureItem'
      type: array
    DistributionsResponse:
      description: 'List of distributions this user is allowed to build.

        '
      items:
        oneOf:
        - $ref: '#/components/schemas/DistributionItem'
        - $ref: '#/components/schemas/BootcDistributionItem'
      type: array
    Repository:
      properties:
        baseurl:
          example: https://cdn.redhat.com/content/dist/rhel8/8/x86_64/baseos/os/
          format: uri
          type: string
        check_gpg:
          type: boolean
        check_repo_gpg:
          default: false
          description: 'Enables gpg verification of the repository metadata

            '
          type: boolean
        gpgkey:
          type: string
        id:
          description: 'An ID referring to a repository defined in content sources can be used instead of

            ''baseurl'', ''mirrorlist'' or ''metalink''.

            '
          type: string
        ignore_ssl:
          type: boolean
        metalink:
          example: https://mirrors.fedoraproject.org/metalink?repo=fedora-32&arch=x86_64
          format: uri
          type: string
        mirrorlist:
          example: http://mirrorlist.centos.org/?release=9-stream&arch=aarch64&repo=BaseOS
          format: uri
          type: string
        module_hotfixes:
          type: boolean
        rhsm:
          type: boolean
      required:
      - rhsm
      type: object
    BtrfsVolume:
      properties:
        minsize:
          $ref: '#/components/schemas/minsize'
        part_type:
          description: 'The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type.

            '
          type: string
        subvolumes:
          items:
            $ref: '#/components/schemas/BtrfsSubvolume'
          type: array
        type:
          enum:
          - btrfs
          type: string
      required:
      - type
      - subvolumes
      type: object
      x-go-type: composer.BtrfsVolume
    FilesystemTyped:
      properties:
        fs_type:
          description: 'The filesystem type. Swap partitions must have an empty mountpoint.

            '
          enum:
          - ext4
          - xfs
          - vfat
          - swap
          type: string
        label:
          type: string
        minsize:
          $ref: '#/components/schemas/minsize'
        mountpoint:
          type: string
        part_type:
          description: 'The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type.

            '
          type: string
        type:
          enum:
          - plain
          type: string
      required:
      - fs_type
      type: object
      x-go-type: composer.FilesystemTyped
    minsize:
      description: size with data units
      example: 2 GiB
      type: string
    BootcDistributionItem:
      properties:
        arch:
          example: x86_64
          type: string
        distro:
          example: rhel-10.0
          type: string
        iso_payload_references:
          description: 'List of allowed payload container references for

            bootable-container-iso image type. Only present for

            bootable-container-iso entries.

            '
          example:
          - quay.io/redhat-services-prod/insights-management-tenant/image-builder-bootc-foundry/rhel-10-qcow2:latest
          - quay.io/redhat-services-prod/insights-management-tenant/image-builder-bootc-foundry/rhel-10-ec2:latest
          items:
            type: string
          type: array
        name:
          example: Red Hat Enterprise Linux 10.0
          type: string
        reference:
          description: Derived container image reference, only references listed in the bootc distributions list are allowed.
          example: quay.io/redhat-services-prod/insights-management-tenant/image-builder-bootc-foundry/rhel-10.1-qcow2:latest
          type: string
        type:
          example: aws
          type: string
      required:
      - distro
      - name
      - type
      - arch
      - reference
      type: object
    PartitionType:
      enum:
      - gpt
      - dos
      type: string
      x-go-type: composer.ImageTypeInfoPartitionType
    Partition:
      oneOf:
      - $ref: '#/components/schemas/FilesystemTyped'
      - $ref: '#/components/schemas/BtrfsVolume'
      - $ref: '#/components/schemas/VolumeGroup'
      type: object
      x-go-type: composer.Partition
    BootMode:
      enum:
      - legacy
      - uefi
      - hybrid
      - none
      type: string
      x-go-type: composer.ImageTypeInfoBootMode
    DistributionDetails:
      description: Complete metadata for a specific distribution from images library
      properties:
        architectures:
          additionalProperties:
            $ref: '#/components/schemas/ArchitectureInfo'
          description: Map of architecture names to their details
          type: object
        codename:
          description: Codename of the distribution
          example: ''
          type: string
        module_platform_id:
          description: Module platform ID for DNF modularity
          example: platform:el9
          type: string
        name:
          description: Name of the distribution
          example: rhel-9.6
          type: string
        os_version:
          description: Full OS version including minor version
          example: '9.6'
          type: string
        ostree_ref:
          description: Default OSTree reference template
          example: rhel/9/%s/edge
          type: string
        product:
          description: Product name
          example: Red Hat Enterprise Linux
          type: string
        releasever:
          description: Release version used in repo files
          example: '9'
          type: string
      required:
      - name
      type: object
    HTTPError:
      properties:
        detail:
          type: string
        title:
          type: string
      required:
      - title
      - detail
    VolumeGroup:
      properties:
        logical_volumes:
          items:
            $ref: '#/components/schemas/LogicalVolume'
          type: array
        minsize:
          $ref: '#/components/schemas/minsize'
        name:
          description: 'Volume group name (will be automatically generated if omitted)

            '
          type: string
        part_type:
          description: 'The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type.

            '
          type: string
        type:
          enum:
          - lvm
          type: string
      required:
      - type
      - logical_volumes
      type: object
      x-go-type: composer.VolumeGroup
    BtrfsSubvolume:
      properties:
        mountpoint:
          description: 'Mountpoint for the subvolume

            '
          type: string
        name:
          description: 'The name of the subvolume, which defines the location (path) on the root volume

            '
          type: string
      required:
      - name
      - mountpoint
      type: object
      x-go-type: composer.BtrfsSubvolume
    DistributionKind:
      description: Kind of distributions to return.
      enum:
      - bootc
      type: string
    DistributionItem:
      properties:
        description:
          example: Red Hat Enterprise Linux (RHEL) 8.4
          type: string
        name:
          example: rhel-84
          type: string
      required:
      - name
      - description
      type: object
    ImageTypeInfo:
      description: Image type metadata from images library
      properties:
        aliases:
          description: Alternative names for this image type
          items:
            example: aws
            type: string
          type: array
        base_partition_table:
          $ref: '#/components/schemas/Disk'
        boot_mode:
          $ref: '#/components/schemas/BootMode'
          description: Boot mode for the image
        default_size:
          description: Default image size in bytes
          example: 1073741824
          format: uint64
          type: integer
        exports:
          description: Names of stages that produce the build output
          items:
            example: image
            type: string
          type: array
        filename:
          description: Canonical filename for the image
          example: image.raw
          type: string
        iso_label:
          description: ISO label (only for ISO image types)
          type: string
        mime_type:
          description: MIME type of the image
          example: application/octet-stream
          type: string
        name:
          description: Image type name
          example: ami
          type: string
        ostree_ref:
          description: Default OSTree ref for this image type
          type: string
        partition_type:
          $ref: '#/components/schemas/PartitionType'
          description: Partition table type
        payload_package_sets:
          description: Package set names safe for custom packages via custom repos
          items:
            example: blueprint
            type: string
          type: array
        required_blueprint_options:
          description: Customization options required by this image type
          items:
            type: string
          type: array
        supported_blueprint_options:
          description: Customization options supported by this image type
          example:
          - distro
          - packages
          - customizations.cacerts
          - customizations.sshkey
          items:
            type: string
          type: array
      required:
      - name
      type: object
      x-go-type: composer.ImageTypeInfo
    LogicalVolume:
      properties:
        fs_type:
          description: 'The filesystem type for the logical volume. Swap LVs must have an empty mountpoint.

            '
          enum:
          - ext4
          - xfs
          - vfat
          - swap
          type: string
        label:
          type: string
        minsize:
          $ref: '#/components/schemas/minsize'
        mountpoint:
          description: 'Mountpoint for the logical volume

            '
          type: string
        name:
          type: string
      required:
      - fs_type
      type: object
      x-go-type: composer.LogicalVolume
    HTTPErrorList:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/HTTPError'
          type: array
      required:
      - errors
    ArchitectureItem:
      properties:
        arch:
          example: x86_64
          type: string
        image_types:
          items:
            example: qcow2
            type: string
          type: array
        repositories:
          description: Base repositories for the given distribution and architecture.
          items:
            $ref: '#/components/schemas/Repository'
          type: array
      required:
      - arch
      - image_types
      - repositories
      type: object