Advertisement
Guest User

Untitled

a guest
Jan 20th, 2016
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. (python-zaqarclient27)yell@yelly:~/Sync/Repos/python-zaqarclient$ curl -i -X PUT http://$ZQ_ENDPOINT:8888/v2/flavors/badflavor -d '{"pool": "badpoolgroup", "capabilities": {"durable": false}}' -H "Content-type: application/json" -H "Client-ID: $ZQ_CLIENT_ID" -H "X-PROJECT-ID: $XPROJECT" -H "X-Auth-Token: $TOKEN"
  2. HTTP/1.0 201 Created
  3. Date: Wed, 20 Jan 2016 23:31:54 GMT
  4. Server: WSGIServer/0.1 Python/2.7.9
  5. content-length: 0
  6. location: http://127.0.0.1:8888/v2/flavors/badflavor
  7.  
  8. (python-zaqarclient27)yell@yelly:~/Sync/Repos/python-zaqarclient$ openstack messaging flavor list
  9. +-------------+---------------+--------------+
  10. | Name | Pool | Capabilities |
  11. +-------------+---------------+--------------+
  12. | badflavor | badpoolgroup | {} |
  13. | superflavor | nicepoolgroup | {} |
  14. +-------------+---------------+--------------+
  15. (python-zaqarclient27)yell@yelly:~/Sync/Repos/python-zaqarclient$ curl -i -X GET http://$ZQ_ENDPOINT:8888/v2/flavors/badflavor -H "Content-type: application/json" -H "Client-ID: $ZQ_CLIENT_ID" -H "X-PROJECT-ID: $XPROJECT" -H "X-Auth-Token: $TOKEN"
  16. HTTP/1.0 200 OK
  17. Date: Wed, 20 Jan 2016 23:32:22 GMT
  18. Server: WSGIServer/0.1 Python/2.7.9
  19. content-length: 154
  20. content-type: application/json; charset=utf-8
  21.  
  22. {"href": "/v2/flavors/badflavor", "capabilities": ["FIFO", "CLAIMS", "DURABILITY", "AOD", "HIGH_THROUGHPUT"], "name": "badflavor", "pool": "badpoolgroup"}(python-zaqarclient27)yell@yelly:~/Sync/Repos/python-zaqarclient$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement