4.6.1. List Flavors

 
MethodURIDescription
GET/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.

The new larger flavors 32GB and 64GB have been introduced in IAD.

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.66. List Flavors: JSON request

The following example shows the List Flavors request:

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 accept a request body.

 4.6.1.2. Response

 

Example 4.67. List Flavors: JSON response

The following example shows the List Flavors response:

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
        },
        {
            "id": 7, 
            "links": [
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/v1.0/647683/flavors/7", 
                    "rel": "self"
                }, 
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/flavors/7", 
                    "rel": "bookmark"
                }
            ], 
            "name": "32GB Instance", 
            "ram": 32768
        }, 
        {
            "id": 8, 
            "links": [
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/v1.0/647683/flavors/8", 
                    "rel": "self"
                }, 
                {
                    "href": "https://ord.databases.api.rackspacecloud.com/flavors/8", 
                    "rel": "bookmark"
                }
            ], 
            "name": "64GB Instance", 
            "ram": 65536
        }
    ]
}



loading table of contents...