forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
12 KiB
12 KiB
Obtaining All DB Instance Specifications
Function
This API is used to obtain all DB instance specifications.
URI
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).
- 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.
Parent topic: DB Instance Management