Skip to content

Managed OpenStack API and automation

VM2Cloud Managed OpenStack exposes the standard OpenStack API. Use the web dashboard for interactive administration, and the OpenStack APIs and CLI for automation.

Obtain a token from Keystone, then pass it as X-Auth-Token on subsequent calls:

Terminal window
curl -s -X POST "$OS_AUTH_URL/auth/tokens" \
-H "Content-Type: application/json" \
-d '{ "auth": { "identity": { "methods": ["password"],
"password": { "user": { "name": "'"$OS_USERNAME"'",
"domain": { "name": "Default" }, "password": "'"$OS_PASSWORD"'" } } },
"scope": { "project": { "name": "'"$OS_PROJECT_NAME"'",
"domain": { "name": "Default" } } } } }' -i | grep -i x-subject-token

For unattended automation, prefer application credentials over passwords — they can be scoped and revoked independently of the account that created them:

Terminal window
openstack application credential create ci-runner

Because the API is OpenStack-compatible, the standard ecosystem works without modification.

Tool Use
openstack CLI Interactive and scripted operations
Terraform (terraform-provider-openstack) Declarative infrastructure
Ansible (openstack.cloud collection) Configuration and orchestration
openstacksdk (Python) Custom automation

A full browsable endpoint reference is in preparation. In the meantime, openstack catalog list returns the service endpoints available in your region, and every service follows the upstream OpenStack API for its version.

Need something specific? Contact VM2Cloud support.