Last active
August 29, 2015 13:57
-
-
Save stackedsax/9763924 to your computer and use it in GitHub Desktop.
cloud metrics staging endpoints info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## which tenant? | |
export TENANT_ID=.... | |
## find the endpoints' id from the list of available endpoints | |
curl -H "X-Auth-Token:$TOKEN" https://staging.identity.api.rackspacecloud.com/v2.0/OS-KSCATALOG/endpointTemplates |python -m json.tool | |
## get a token | |
curl -X POST https://staging.identity.api.rackspacecloud.com/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username":"autoscale","password":"....."}}}' -H "Content-type: application/json" |python -m json.tool | |
export TOKEN=... | |
## Add the endpoints to a tenant (123 and 125 are our current staging endpoints) | |
curl -X POST -H "Content-Type: application/json" -d '{"OS-KSCATALOG:endpointTemplate":{"id":123}}' -H "X-Auth-Token:$TOKEN" https://staging.identity-internal.api.rackspacecloud.com/v2.0/tenants/$TENANT_ID/OS-KSCATALOG/endpoints | python -m json.tool | |
curl -X POST -H "Content-Type: application/json" -d '{"OS-KSCATALOG:endpointTemplate":{"id":125}}' -H "X-Auth-Token:$TOKEN" https://staging.identity-internal.api.rackspacecloud.com/v2.0/tenants/$TENANT_ID/OS-KSCATALOG/endpoints | python -m json.tool | |
## check that they were added | |
curl -X GET -H "Content-Type: application/json" -H "X-Auth-Token:$TOKEN" https://staging.identity-internal.api.rackspacecloud.com/v2.0/tenants/$TENANT_ID/OS-KSCATALOG/endpoints |python -m json.tool | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Staging details: | |
mosso request ticket: https://jira.mosso.com/browse/NEB-3382 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"OS-KSCATALOG:endpointTemplate": { | |
"enabled": true, | |
"global": false, | |
"id": 123, | |
"name": "cloudMetrics", | |
"publicURL": "staging.metrics-ingest.api.rackspacecloud.com", | |
"region": "ORD", | |
"type": "rax:metrics" | |
} | |
} | |
{ | |
"OS-KSCATALOG:endpointTemplate": { | |
"enabled": true, | |
"global": false, | |
"id": 125, | |
"name": "cloudMetrics", | |
"publicURL": "staging.metrics.api.rackspacecloud.com", | |
"region": "ORD", | |
"type": "rax:metrics" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment