Enable REST API in Red Hat Update Infrastructure

Red Hat Update Infrastructure has a REST (Representational State Transfer) API (Application Programming Interface). The REST API is disabled by default.

Before you begin

  • Make sure that you have reviewed the Red Hat Update Infrastructure 5 Installation and Management guide.
  • You must be authenticated to the Red Hat Container Registry (registry.redhat.io) to pull the required images.

Procedure

  1. Prepare an answers file to instruct the installer to enable the REST API. This is a YAML file that controls selected installation parameters that are not available as Red Hat Update Infrastructure installer arguments. If you do not normally install or update Red Hat Update Infrastructure with an existing answers file, create a new file with the following:
    rhua:
      restapi_support_enabled: True
  2. If you already use an answers file, be sure to add restapi_support_enabled: True` to the rhua section in this file.
  3. Modify your standard podman run installer command to include the following command:
    $ podman run ... \
      -v /<PATH>/answers.yaml:/answers.yaml:Z \
      registry.redhat.io/rhui5/installer-rhel9 \
      rhui-installer ...