Unauthorized error while listing api-resources

Solution Verified - Updated -

Issue

  • Unable to retrieve the complete list of server API's.
  • Getting error when executing oc api-resources command to see all API resources:

    $ oc api-resources -v6
    [...]
    helpers.go:119] error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: Unauthorized
    [...]
    

Environment

  • Red Hat OpenShift Container Platform (OCP) 3.11

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