FlavorListDetails

From Hostway API Documentation
Revision as of 15:23, 1 February 2012 by Administrator (Talk | contribs)
Jump to: navigation, search

Lists all flavors with size details optionally limited by the query parameters.

GET /flavors/detail?minDisk=diskInGB&minRam=ramInMB

Parameters

minDisk - int
Optional Only flavors only 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":[
      {
         "name":"Small",
         "links":[
            {
               "href":"http://127.0.0.1:6543/flavors/1/",
               "rel":"self"
            }
         ],
         "vcpu":1,
         "ram":512,
         "disk":10,
         "id":"1"
      },
      {
         "name":"Large",
         "links":[
            {
               "href":"http://127.0.0.1:6543/flavors/2/",
               "rel":"self"
            }
         ],
         "vcpu":4,
         "ram":16384,
         "disk":60,
         "id":"2"
      }
   ]
}
</big>
id - string
Unique identifier for this flavor.
links - array
Hypermedia for this resource.
name - string
Descriptive name for this flavor.
ram - number
Memory allocated with this flavor. Specified in MB.
disk - number
Disk space allocated with this flavor. Specified in GB.
vcpu - number
Number of CPUs allocated with this flavor.


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox