Method | URI | Description |
---|---|---|
GET | /v2/{tenant_id}/flavors/detail | Lists available flavors. Includes the rxtx_factor, OS-FLV-EXT-DATA:ephemeral, and swap extended attributes. |
Normal response codes: 200200
This table shows the URI parameters for the list flavors with extra data request:
Name | Type | Description |
---|---|---|
| String | The ID for the tenant or account in a multi-tenancy cloud. |
This operation does not require a request body.
Example 3.91. List flavors with extra data: JSON response
{ "flavors": [ { "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 1, "id": "1", "links": [ { "href": "http://openstack.example.com/v2/openstack/flavors/1", "rel": "self" }, { "href": "http://openstack.example.com/openstack/flavors/1", "rel": "bookmark" } ], "name": "m1.tiny", "ram": 512, "vcpus": 1 }, { "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 20, "id": "2", "links": [ { "href": "http://openstack.example.com/v2/openstack/flavors/2", "rel": "self" }, { "href": "http://openstack.example.com/openstack/flavors/2", "rel": "bookmark" } ], "name": "m1.small", "ram": 2048, "vcpus": 1 }, { "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 40, "id": "3", "links": [ { "href": "http://openstack.example.com/v2/openstack/flavors/3", "rel": "self" }, { "href": "http://openstack.example.com/openstack/flavors/3", "rel": "bookmark" } ], "name": "m1.medium", "ram": 4096, "vcpus": 2 }, { "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 80, "id": "4", "links": [ { "href": "http://openstack.example.com/v2/openstack/flavors/4", "rel": "self" }, { "href": "http://openstack.example.com/openstack/flavors/4", "rel": "bookmark" } ], "name": "m1.large", "ram": 8192, "vcpus": 4 }, { "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 160, "id": "5", "links": [ { "href": "http://openstack.example.com/v2/openstack/flavors/5", "rel": "self" }, { "href": "http://openstack.example.com/openstack/flavors/5", "rel": "bookmark" } ], "name": "m1.xlarge", "ram": 16384, "vcpus": 8 } ] }
Example 3.92. List flavors with extra data: XML response
<?xml version='1.0' encoding='UTF-8'?> <flavors xmlns:OS-FLV-EXT-DATA="http://docs.openstack.org/compute/ext/flavor_extra_data/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1"> <flavor disk="1" vcpus="1" ram="512" name="m1.tiny" id="1" OS-FLV-EXT-DATA:ephemeral="0"> <atom:link href="http://openstack.example.com/v2/openstack/flavors/1" rel="self"/> <atom:link href="http://openstack.example.com/openstack/flavors/1" rel="bookmark"/> </flavor> <flavor disk="20" vcpus="1" ram="2048" name="m1.small" id="2" OS-FLV-EXT-DATA:ephemeral="0"> <atom:link href="http://openstack.example.com/v2/openstack/flavors/2" rel="self"/> <atom:link href="http://openstack.example.com/openstack/flavors/2" rel="bookmark"/> </flavor> <flavor disk="40" vcpus="2" ram="4096" name="m1.medium" id="3" OS-FLV-EXT-DATA:ephemeral="0"> <atom:link href="http://openstack.example.com/v2/openstack/flavors/3" rel="self"/> <atom:link href="http://openstack.example.com/openstack/flavors/3" rel="bookmark"/> </flavor> <flavor disk="80" vcpus="4" ram="8192" name="m1.large" id="4" OS-FLV-EXT-DATA:ephemeral="0"> <atom:link href="http://openstack.example.com/v2/openstack/flavors/4" rel="self"/> <atom:link href="http://openstack.example.com/openstack/flavors/4" rel="bookmark"/> </flavor> <flavor disk="160" vcpus="8" ram="16384" name="m1.xlarge" id="5" OS-FLV-EXT-DATA:ephemeral="0"> <atom:link href="http://openstack.example.com/v2/openstack/flavors/5" rel="self"/> <atom:link href="http://openstack.example.com/openstack/flavors/5" rel="bookmark"/> </flavor> </flavors>
This operation does not return a response body.