Atom feed of this document
 

 4.6.1. List Flavors

 
MethodURIDescription
GET/flavors

Lists information for all available flavors.

Lists information for all available flavors.

This operation lists information for all available flavors.

This resource is identical to the flavors found in the OpenStack Nova API, but without the disk property.

Normal response codes: 200

Error response codes: badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), unprocessableEntity (422), instanceFault (500), notImplemented (501), serviceUnavailable (503), itemNotFound (404)

 4.6.1.1. Request

This table shows the URI parameters for the List Flavors Request:

NameTypeDescription

{accountId}

​String

The account ID of the owner of the specified instance.

 

Example 4.121. List Flavors Request: XML

The following examples show the List Flavors requests:

GET /v1.0/1234/flavors HTTP/1.1
User-Agent: python-troveclient
Host: ord.databases.api.rackspacecloud.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/xml
Content-Type: application/xml



 

Example 4.122. List Flavors Request: JSON

GET /v1.0/1234/flavors HTTP/1.1
User-Agent: python-troveclient
Host: ord.databases.api.rackspacecloud.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json



This operation does not require a request body.

 4.6.1.2. Response

 

Example 4.123. List Flavors Response: XML

The following examples show the List Flavors responses:

HTTP/1.1 200 OK
Content-Type: application/xml
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 1600
Date: Thu, 13 Feb 2014 21:47:13 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

<flavors xmlns="http://docs.openstack.org/database/api/v1.0">
    <flavor id="1" name="512MB Instance" ram="512">
        <links>
            <link href="https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/1" rel="self"/>
            <link href="https://ord.databases.api.rackspacecloud.com/flavors/1" rel="bookmark"/>
        </links>
    </flavor>
    <flavor id="2" name="1GB Instance" ram="1024">
        <links>
            <link href="https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/2" rel="self"/>
            <link href="https://ord.databases.api.rackspacecloud.com/flavors/2" rel="bookmark"/>
        </links>
    </flavor>
    <flavor id="3" name="2GB Instance" ram="2048">
        <links>
            <link href="https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/3" rel="self"/>
            <link href="https://ord.databases.api.rackspacecloud.com/flavors/3" rel="bookmark"/>
        </links>
    </flavor>
    <flavor id="4" name="4GB Instance" ram="4096">
        <links>
            <link href="https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/4" rel="self"/>
            <link href="https://ord.databases.api.rackspacecloud.com/flavors/4" rel="bookmark"/>
        </links>
    </flavor>
    <flavor id="5" name="8GB Instance" ram="8192">
        <links>
            <link href="https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/5" rel="self"/>
            <link href="https://ord.databases.api.rackspacecloud.com/flavors/5" rel="bookmark"/>
        </links>
    </flavor>
    <flavor id="6" name="16GB Instance" ram="16384">
        <links>
            <link href="https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/6" rel="self"/>
            <link href="https://ord.databases.api.rackspacecloud.com/flavors/6" rel="bookmark"/>
        </links>
    </flavor>
</flavors>


 

Example 4.124. List Flavors Response: JSON

HTTP/1.1 200 OK
Content-Type: application/json
Via: 1.1 Repose (Repose/2.6.7)
Content-Length: 1186
Date: Thu, 13 Feb 2014 21:47:13 GMT
Server: Jetty(8.0.y.z-SNAPSHOT)

{
    "flavors": [
        {
            "id": 1, 
            "links": [
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/1", 
                    "rel": "self"
                }, 
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/flavors/1", 
                    "rel": "bookmark"
                }
            ], 
            "name": "512MB Instance", 
            "ram": 512
        }, 
        {
            "id": 2, 
            "links": [
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/2", 
                    "rel": "self"
                }, 
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/flavors/2", 
                    "rel": "bookmark"
                }
            ], 
            "name": "1GB Instance", 
            "ram": 1024
        }, 
        {
            "id": 3, 
            "links": [
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/3", 
                    "rel": "self"
                }, 
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/flavors/3", 
                    "rel": "bookmark"
                }
            ], 
            "name": "2GB Instance", 
            "ram": 2048
        }, 
        {
            "id": 4, 
            "links": [
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/4", 
                    "rel": "self"
                }, 
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/flavors/4", 
                    "rel": "bookmark"
                }
            ], 
            "name": "4GB Instance", 
            "ram": 4096
        }, 
        {
            "id": 5, 
            "links": [
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/5", 
                    "rel": "self"
                }, 
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/flavors/5", 
                    "rel": "bookmark"
                }
            ], 
            "name": "8GB Instance", 
            "ram": 8192
        }, 
        {
            "id": 6, 
            "links": [
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/v1.0/1234/flavors/6", 
                    "rel": "self"
                }, 
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/flavors/6", 
                    "rel": "bookmark"
                }
            ], 
            "name": "16GB Instance", 
            "ram": 16384
        }
    ]
}



loading table of contents...