4.6.1. List flavors

 
MethodURIDescription
GET/{version}/{accountId}/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 larger 32GB and 64GB flavors are available in all US and UK datacenters.

This table shows the possible response codes for this operation:

Response CodeNameDescription
200SuccessRequest succeeded.
400Bad RequestThe request is missing one or more elements, or the values of some elements are invalid.
401UnauthorizedYou are not authorized to complete this operation. This error can occur if the request is submitted with an invalid authentication token.
403ForbiddenYou are denied access to the requested resource.
404Not FoundThe requested item was not found.
405badMethodThe specified method is not allowed for the given resource.
413Over LimitThe number of items returned is above the allowed limit.
422unprocessableEntityThe item cannot be processed.
500instanceFaultThe instance has experienced a fault.
501notImplementedThe server does not support the functionality required to fulfill the request.
503Service UnavailableThe service is not available.

 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.75. 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.76. 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
        }
    ]
}



Contents Search
loading table of contents...