Skip to content

Instantly share code, notes, and snippets.

@fabianvf
Last active December 7, 2018 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabianvf/a38a399fcf83e95f70139b44704ab516 to your computer and use it in GitHub Desktop.
Save fabianvf/a38a399fcf83e95f70139b44704ab516 to your computer and use it in GitHub Desktop.
from openshift import client
configuration = client.Configuration()
configuration.api_key = {'authorization': 'Bearer {0}'.format(api_key)}
configuration.host = host
client.Configuration.set_default(configuration)
api = client.OapiApi()
res = api.list_project()
print(res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment