Advertisement
Guest User

Untitled

a guest
May 30th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. why does flavor attribute only returns id on my call here (get server list : /servers/detail, https://developer.openstack.org/api-ref/compute/#list-servers) :
  2.  
  3. Array
  4. (
  5. [0] => Array
  6. (
  7. ........
  8. [flavor] => Array
  9. (
  10. [id] => 8fbb7ade-4721-405c-931f-11fdefd5bffc
  11. [links] => Array
  12. (
  13. [0] => Array
  14. (
  15. [href] => http://xxx.xxx.xxx.xxx/flavors/8fbb7ade-4721-405c-931f-11fdefd5bffc
  16. [rel] => bookmark
  17. )
  18.  
  19. )
  20.  
  21. )
  22.  
  23.  
  24. although, on the documentation on https://developer.openstack.org/api-ref/compute/#list-servers (response example) i can get complete info of flavor :
  25.  
  26. "flavor": {
  27. "disk": 1,
  28. "ephemeral": 0,
  29. "extra_specs": {
  30. "hw:cpu_model": "SandyBridge",
  31. "hw:mem_page_size": "2048",
  32. "hw:cpu_policy": "dedicated"
  33. },
  34. "original_name": "m1.tiny.specs",
  35. "ram": 512,
  36. "swap": 0,
  37. "vcpus": 1
  38. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement