Skip to content

Instantly share code, notes, and snippets.

@elight

elight/rax_auth.txt

Last active Aug 29, 2015
Embed
What would you like to do?
export body="{\"auth\":{\"RAX-KSKEY\":\"apiKeyCredentials\":{\"username\":\"$RAX_USERNAME\", \"apiKey\":\"$RAX_API_KEY\"}}}"
echo $body
echo
curl -v -s https://identity.api.rackspacecloud.com/v2.0/tokens -X 'POST' \
-d $body \
-H 'Content-Type: application/json' | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment