Obtaining All DB Instance Specifications

Function

This API is used to obtain all DB instance specifications.

URI

  • URI format

    PATH: /v1.0/{project_id}/flavors

    Method: GET

  • Parameter description

    Table 1 Parameter description

    Name

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID of a tenant in a region.

  • Restrictions

    Currently, only the DB engines MySQL and PostgreSQL are supported by the API.

Request

None

Normal Response

  • Parameter description

    Table 2 Parameter description

    Name

    Type

    Description

    flavors

    List data structure. For details, see Table 3.

    Indicates the specification information.

    Table 3 flavors field data structure description

    Name

    Type

    Description

    ram

    Int

    Indicates the memory specifications in megabytes (MB).

    id

    Int

    Indicates the specification ID (Int type). Its default value is 1 because RDS uses UUID to store the specification ID and cannot convert it to the Int type.

    links

    List data structure. For details, see Table 4.

    Indicates the link address.

    name

    String

    Indicates the specification item name.

    str_id

    String

    Indicates the specification ID (String type).

    Table 4 links field data structure description

    Name

    Type

    Description

    rel

    String

    Indicates the link property.

    href

    String

    Indicates the API link. Its value is "".

  • Response example

    {
      "flavors": [
        {
          "ram": 2048,
          "id": 1,
          "links": [
            {
              "rel": "self",
              "href": ""
            },
            {
              "rel": "bookmark",
              "href": ""
            }
          ],
          "name": "rds.pg.c2.medium",
          "str_id": "9ff2a3a5-c859-bbc0-67f7-86ce59432b1d"
        },
        {
          "ram": 4096,
          "id": 1,
          "links": [
            {
              "rel": "self",
              "href": ""
            },
            {
              "rel": "bookmark",
              "href": ""
            }
          ],
          "name": "rds.pg.c2.large",
          "str_id": "b77b5b7e-f572-dfd9-57af-910547fe0883"
        }
      ]
    }
    

Abnormal Response

For details, see Abnormal Request Results.