Skip to content

bkumar28/openshift-api-access-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

OpenShift API Access Token

Install dependencies

 $ pip3 install requests

Update Initial Kwargs

  PROTOCOL = https or http
  DOMAINNAME = openshift.example.com # OpenShift domain name
  PORT = 6443 # API access port
  ocp_username = "admin" #your openshift username
  ocp_password = "admin@123" #your openshift password
  verify_ssl = False #Is enabled OpenShift SSL layer, True or False
  host = "https://api.openshift.example.com:6443" # f"{PROTOCOL}://api.{DOMAINNAME}:{PORT}"

  initial_kwargs = {
          "ocp_username": ocp_username,
          "ocp_password": ocp_password,
           "verify_ssl": verify_ssl,
          "host": host,
      }

Run python script to get Openshift API Access Token

 $ python3 openshift_auth.py

Reference

Releases

No releases published

Packages

No packages published

Languages