Modify REST API in Red Hat Update Infrastructure

Once the RHUA is successfully deployed, you can set several additional options for the API.

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. To change your API Configuration, edit the /etc/rhui/rhui-tools.conf file in the RHUA container. The following options are considered the default values as defined in /etc/rhui-static/rhui-tools-static.conf
    host: 0.0.0.0
    port: 8080
    workers: 4
    session_length: 120
    cookie_secure: False
    secret_file: /etc/sysconfig/rhui-api.secret
    gunicorn_timeout: 90
    Note

    restapi_support_enabled is also supported.

  2. If you modify any of these options, restart the Red Hat Update Infrastructure services or the RHUA container for the changes to take effect.