USERNAME=<username> APIKEY=<api_key> curl -s -d \ '{ "auth": { "RAX-KSKEY:apiKeyCredentials": { "username": "$USERNAME", "apiKey": "$APIKEY"} } }' \ -H 'Content-Type: application/json' \ 'https://identity.api.rackspacecloud.com/v2.0/tokens' | python -m json.tool | grep -i token -A5