This article explains how to authenticate to the CSO keystone API in order to obtain access keys for CSO API calls.
Using the guidance in the document, Contrail Service Orchestration (CSO) HTTP API Reference and Developer Guide , connectivity was attempted to both:
Both posts were using the JSON format:
{ "auth": { "scope": { "project": { "domain": { "id": "<domain-id>" }, "name": "<name>" } }, "identity": { "password": { "user": { "domain": { "id": "<domain-id>" }, "password": "<password>", "name": "<name>" } }, "methods": [ "password" ] } } }
Connectivity works on: https:// <ip-address> /v3/auth/tokens
Valid JSON should look like the following:
{ "auth": { "scope": { "project": { "domain": { "id": "default" }, "name": "{{CSO_OPCO.EN_US}}" } }, "identity": { "password": { "user": { "domain": { "id": "default" }, "password": "{{CSO_PASSWORD.EN_US}}", "name": "{{CSO_USER.EN_US}}" } }, "methods": [ "password" ] } } }
Where:
Check the value against Key X-Subject-Token to use as Auth token.