Curl the Api


title: “Curl the Api”
date: 2020-01-18T09:17:25
slug: curl-the-api


Login as Developer:

oc login
Authentication required for https://192.168.42.132:8443 (openshift)
Username: debeloper
Password:
Login successful.

Get the User Token:

oc whoami -t
uVBxWxgBPwa3B\_92d4Avckq974cUIW6BvBFxpdXNLDw

Curl the API:

curl -k https://192.168.42.132:8443/oapi/v1/users -H "Authorization: Bearer uVBxWxgBPwa3B\_92d4Avckq974cUIW6BvBFxpdXNLDw"
Print Friendly, PDF & Email