This API is used to obtain DB instance specifications of a specified specification ID.
PATH: /v1.0/{project_id}/flavors/{flavorId}
Method: GET
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. |
flavorId |
Yes |
Specifies the specification ID. When this parameter is empty, the URLs of all DB instance specifications are obtained. For details, see str_id in flavors in section Obtaining All DB Instance Specifications. |
None
Name |
Type |
Description |
---|---|---|
ram |
Int |
Indicates the memory specifications in GB. |
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 |
Indicates the link address. |
name |
String |
Indicates the specification item name. |
str_id |
String |
Indicates the specification ID. |
flavor_detail |
List data structure. For details, see Table 4. |
Indicates the specification information. |
price_detail |
List data structure. For details, see Table 5. |
Indicates the price information. |
flavor |
Dictionary data structure. For details, see Table 6. |
Indicates the embedded specification information. |
Name |
Type |
Description |
---|---|---|
rel |
String |
Indicates the link property. |
href |
String |
Indicates the API link. Its value is "". |
Name |
Type |
Description |
---|---|---|
name |
String |
Indicates the specification name, such a cpu or mem. |
value |
String |
Indicates the specification item value. |
Name |
Type |
Description |
---|---|---|
timeUnit |
Int |
Indicates the pricing unit. |
price |
Float |
Indicates the unit price. |
Name |
Type |
Description |
---|---|---|
ram |
Int |
Indicates the memory specifications in GB. |
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 3. |
Indicates the link address. |
name |
String |
Indicates the specification item name. |
str_id |
String |
Indicates the specification ID. |
{ "ram": 2, "id": 1, "links": null, "name": "rds.pg.c2.medium", "str_id": "9ff2a3a5-c859-bbc0-67f7-86ce59432b1d", "flavor_detail": [ { "name": "cpu", "value": "1" }, { "name": "mem", "value": "2" }, { "name": "flavor", "value": "normal1" }, { "name": "dbType", "value": "MySQL" }, { "name": "serverType", "value": "XEN" } ], "price_detail": [], "flavor": { "ram": 2048, "id": 1, "links": [ { "rel": "self", "href": "" }, { "rel": "bookmark", "href": "" } ], "name": "rds.pg.c2.medium", "str_id": "9ff2a3a5-c859-bbc0-67f7-86ce59432b1d" } }
For details, see Abnormal Request Results.