Chapter 1. Creating the Red Hat Automation Hub API token

Before you can interact with Automation Hub by uploading or downloading collections, you need to create an API token. The Automation Hub API token authenticates your ansible-galaxy client to the Red Hat Automation Hub server.

You can create an API token using Automation Hub Token management.

Prerequisites

  • Valid subscription credentials for Red Hat Ansible Automation Platform.

Procedure

  1. Navigate to https://cloud.redhat.com/ansible/automation-hub/token/.
  2. Click Load Token.
  3. Click copy icon to copy the API token to the clipboard.
  4. Paste the API token into a file and store in a secure location.
Important

The API token is a secret token used to protect your content. Store your API token in a secure location.

The API token is now available to use to configure Automation Hub as your default collections server or when uploading collections using the ansible-galaxy command line tool.