Skip to content

Instantly share code, notes, and snippets.

@vincentmac
Created December 14, 2012 09:05
Show Gist options
  • Save vincentmac/4283858 to your computer and use it in GitHub Desktop.
Save vincentmac/4283858 to your computer and use it in GitHub Desktop.
riak commands
curl -v -X HEAD -d '{"username":"vincent"}' -H "Content-Type: application/json" http://127.0.0.1:5000/api/users/search
curl -v -d '{"username":"vincent"}' -H "Content-Type: application/json" http://127.0.0.1:5000/api/users/search
Search for all users
http://127.0.0.1:8091/riak/users?keys=true # List all keys, old format
http://127.0.0.1:8091/buckets/users/keys?keys=true # List all keys, new format
http://127.0.0.1:8091/solr/users/select?q=username%3Atestuser&rows=10000&wt=json
Search for all accounts
http://127.0.0.1:8091/riak/accounts?keys=true # List all keys, old format
http://127.0.0.1:8091/buckets/accounts/keys?keys=true # List all keys, new format
GET /riak/bucket?keys=true # List all keys, old format
GET /buckets/bucket/keys?keys=true # List all keys, new format
http://127.0.0.1:8091/stats # cluster/node stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment