Managed Kubernetes
Latest
How to Generate a Token for using the Qbert API
Problem
Qbert is the Platform9 Managed Kubernetes(PMK) cluster manager, running in the Management Plane. It enables CRUD (create, read, update, delete) operations on one or more Kubernetes clusters within PMK.
Qbert requires a project scoped token to authorize the calls made to the REST API.
Environment
Platform9 Managed Kubernetes - All Versions
Procedure
Run the following command on the machine where you intend to use the Qbert API.
TOKEN=$(curl -D - -sH "Content-Type: application/json" https://<URL>/keystone/v3/auth/tokens -d '{"auth": {"identity": {"methods": ["password"], "password": {"user": {"name": "<email>", "domain": {"id": "default"}, "password": "<Password>"}}}}}' | grep -Fi 'X-Subject-Token' | awk '{print $2}')
You can now use the Qbert API by passing the saved TOKEN as the Authorization medium.
curl --request GET --url /qbert/v3/{project_uuid}/nodes --header "X-Auth-Token: $TOKEN"
The project_uuid can be obtained from the UI by clicking on your Profile at the top right -> Admin Settings -> Tenant -> Tenant UUID
Additional Information
These tokens are project scoped, so make sure your user has access to this project/tenant.
Last updated on
Was this page helpful?
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered by
