Skip to content

Instantly share code, notes, and snippets.

oc <verb> <resoure_type> [<name>]
User Login and Authetication
============================
oc login -u system:admin https://ose-master01.example.com:8443
oc whoami
oc whoami -t # prints token which is used to authenticate any api requests from this session to master.
oc logout
oc new-project build-project
{
"swagger": "2.0",
"info": {
"title": "Geocoder REST API",
"description": "This API computes the physical locations (i.e., latitude and longitude) and correct, standardized forms of civic and non-civic addresses in British Columbia. CORS is enabled for gov.bc.ca only. Please read our <a href=https://github.com/bcgov/api-specs/blob/master/COLLECTION_NOTICE.md#collection-notice target=\"_blank\">data collection notice</a>",
"version": "2.0.0",
"license": {
"name": "Open Government License - British Columbia",
"url": "http://www2.gov.bc.ca/gov/content/governments/about-the-bc-government/databc/open-data/open-government-license-bc"
},