FlavorList
(Difference between revisions)
(Created page with "Lists all flavors optionally limited by the query parameters. '''GET''' /flavors?''minDisk=diskInGB&minRam=ramInMB'' == Parameters == ; minDisk - ''int'' : ''Optional'' Only...") |
(→JSON) |
||
Line 14: | Line 14: | ||
== Result == | == Result == | ||
=== JSON === | === JSON === | ||
− | + | ||
+ | <big> | ||
+ | <source lang="javascript"> | ||
{ | { | ||
"flavors":[ | "flavors":[ | ||
Line 39: | Line 41: | ||
] | ] | ||
} | } | ||
− | </ | + | </big></source> |
; id - ''string'' | ; id - ''string'' |
Revision as of 15:21, 1 February 2012
Lists all flavors optionally limited by the query parameters.
GET /flavors?minDisk=diskInGB&minRam=ramInMB
Parameters
- minDisk - int
- Optional Only flavors with a disk size greater than or equal to minDisk will be returned. Specified in GB.
- minRam - int
- Optional Only flavors with a memory size greater than or equal to minRam will be returned. Specified in MB.
Also see Pagination
Result
JSON
{ "flavors":[ { "id":"1", "links":[ { "href":"http://127.0.0.1:6543/flavors/1/", "rel":"self" } ], "name":"Small" }, { "id":"2", "links":[ { "href":"http://127.0.0.1:6543/flavors/2/", "rel":"self" } ], "name":"Large" } ] } </big>
- id - string
- Unique identifier for this flavor.
- links - array
- Hypermedia for this resource.
- name - string
- Descriptive name for this flavor.