Skip to content

Instantly share code, notes, and snippets.

@mrpatrick
Created October 22, 2013 22:13
Show Gist options
  • Save mrpatrick/7109118 to your computer and use it in GitHub Desktop.
Save mrpatrick/7109118 to your computer and use it in GitHub Desktop.
RS Auth
curl -X POST https://identity.api.rackspacecloud.com/v2.0/tokens -d '{ "auth":{ "passwordCredentials":{ "username":"$USER", "password":"$PASSWORD"}}}' -H "Content-type: application/json"
#!/bin/bash
curl -X POST https://identity.api.rackspacecloud.com/v2.0/tokens -d '{ "auth":{ "RAX-KSKEY:apiKeyCredentials":{ "username":"USERNAME_HERE", "apiKey":"API_KEY_HERE" } } }' -H "Content-type: application/json"
#!/bin/bash
curl https://identity.api.rackspacecloud.com/v2.0/users -d -H "X-Auth-Token: $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment