summaryrefslogtreecommitdiff
path: root/api-ref/source/flavors.inc
blob: 005aa2f19bbfa3a47820bf81bf6122aa1699bbc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.. -*- rst -*-

=================
Flavors (flavors)
=================

Lists all flavors and shows details for a flavor, by ID.


Show flavor details
~~~~~~~~~~~~~~~~~~~

.. rest_method::  GET /v1.0/{accountId}/flavors/{flavorId}

Shows flavor details with details of the RAM.

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

The ``flavorId`` parameter must be an integer value. If you use a
floating point value for this parameter, this call truncates the
decimal portion and uses the integer portion as the ``flavorId``
value.

Normal response codes: 200

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


Request
-------

.. rest_parameters:: parameters.yaml

   - flavorId: flavorId
   - accountId: accountId


Response Example
----------------

.. literalinclude:: samples/db-flavors-by-id-response.json
   :language: javascript




List flavors
~~~~~~~~~~~~

.. rest_method::  GET /v1.0/{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.

Normal response codes: 200

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


Request
-------

.. rest_parameters:: parameters.yaml

   - accountId: accountId


Response Example
----------------

.. literalinclude:: samples/db-flavors-response.json
   :language: javascript