How to download the pull secret from Red Hat Hybrid Cloud Console using a REST API call?

Solution Verified - Updated -

Issue

  • How to download the pull secret from <cloud.redhat.com/openshift/install/pull-secret> using a REST API call?
  • How to automate the download of the pull secret needed for OpenShift 4 installs?
  • Trying to get the pull secret via REST API call using user and password is not working with error "Client not allowed for direct access grants".

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat Hybrid Cloud Console
  • Pull Secret

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content