Updated

Obtaining your API Key

  1. Log into your account at OCS
  2. CloudAPI Users → Create a new API User
    Adding an API user
  3. Download your OpenRC
    Downloading OpenRC file

OpenRC

OpenStack credentials are stored in an .openrc file. It simply adds OpenStack’s connection settings into environment variables with a sh/bash compatible script.

OpenRC will pre-authenticate all OpenStack commands and can also be used to authenticate with tools like Terraform.

# OCS OpenRC Example
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=projectName
export OS_USERNAME=username
export OS_PASSWORD=password
export OS_AUTH_URL=http://api.ocs.oneqode.com:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

The OpenRC file can be loaded with:

$ . openrc
Proudly Australian 🦘