Skip to content

Instantly share code, notes, and snippets.

@dan1
Created April 18, 2015 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dan1/fadcfd9e7ce61f23c0c2 to your computer and use it in GitHub Desktop.
Save dan1/fadcfd9e7ce61f23c0c2 to your computer and use it in GitHub Desktop.
domain admin needs to pass domain_id
ubuntu@ubuntu:~$ curl -s -H "X-Auth-Token: de960a1006864f53b9fcdbe01613e209" http://192.168.85.125:5000/v3/projects?domain_id=fa163563484c40fcafaf365e7ef45a22 | python -mjson.tool
{
"links": {
"next": null,
"previous": null,
"self": "http://192.168.85.125:5000/v3/projects?domain_id=fa163563484c40fcafaf365e7ef45a22"
},
"projects": [
{
"description": "discount shopping rocks!",
"domain_id": "fa163563484c40fcafaf365e7ef45a22",
"enabled": true,
"id": "b6dd069070b84230a399c73a195f6109",
"links": {
"self": "http://192.168.85.125:5000/v3/projects/b6dd069070b84230a399c73a195f6109"
},
"name": "BigK",
"parent_id": null
},
{
"description": "",
"domain_id": "fa163563484c40fcafaf365e7ef45a22",
"enabled": true,
"id": "747621592a20456283e7b7b0c9b2cbd8",
"links": {
"self": "http://192.168.85.125:5000/v3/projects/747621592a20456283e7b7b0c9b2cbd8"
},
"name": "deli-department",
"parent_id": null
},
{
"description": "",
"domain_id": "fa163563484c40fcafaf365e7ef45a22",
"enabled": true,
"id": "74fb92e7b24846c496ab2e547cf4c837",
"links": {
"self": "http://192.168.85.125:5000/v3/projects/74fb92e7b24846c496ab2e547cf4c837"
},
"name": "donkey",
"parent_id": null
},
{
"description": "",
"domain_id": "fa163563484c40fcafaf365e7ef45a22",
"enabled": true,
"id": "5d16e29299cf4078811f9c90cc9eabb2",
"links": {
"self": "http://192.168.85.125:5000/v3/projects/5d16e29299cf4078811f9c90cc9eabb2"
},
"name": "grocery",
"parent_id": null
},
{
"description": "dan",
"domain_id": "fa163563484c40fcafaf365e7ef45a22",
"enabled": true,
"id": "d1617d881dec4a358d0d66b1dcee9b76",
"links": {
"self": "http://192.168.85.125:5000/v3/projects/d1617d881dec4a358d0d66b1dcee9b76"
},
"name": "test 3",
"parent_id": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment