Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example for setting up CLOUDAPI_SERVICES sapi metadata
> triton -p west1 services
docker  tcp://
> triton -p west1 services -j
> triton -p west1 services -j | json
  "docker": "tcp://",
  "cmon": ""

All sapi metadata takes strings. When adding a json object it needs to be encoded as a string first.

[bbennett@headnode (us-west-1) ~]$ sdc-sapi /services?name=cloudapi | json -Ha metadata | grep CLOUDAPI_SERVICES
  "CLOUDAPI_SERVICES": "{\"docker\":\"tcp://\",\"cmon\":\"\"}",
[bbennett@headnode (us-west-1) ~]$ sdc-sapi /services?name=cloudapi | json -Ha metadata.CLOUDAPI_SERVICES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.