This API is used to query the database specifications of a specified DB engine version.
GET https://{Endpoint}/v3/{project_id}/flavors/{database_name}?version_name={version_name}
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
database_name |
Yes |
Specifies the DB engine name. Its value can be any of the following and is case-insensitive:
|
version_name |
No |
Specifies the database version. For details about how to obtain the database version, see section Querying Version Information About a DB Engine. For details about the version, see DB Engines and Versions. |
spec_code |
No |
Specifies the specification code. NOTICE:
For Microsoft SQL Server, Only 2022_EE, 2019_EE and 2017_EE support the creation of read replicas and do not support the creation of single DB instances. The format of the specification code is: {spec code}{instance mode}.
|
Name |
Type |
Description |
---|---|---|
flavors |
Array of objects |
Indicates the DB instance specifications information list. For details, see Table 3. |
Name |
Type |
Description |
---|---|---|
vcpus |
String |
Indicates the CPU size. For example, the value 1 indicates 1 vCPU. |
ram |
Integer |
Indicates the memory size in GB. |
id |
String |
Indicates the specification ID, which is unique. |
spec_code |
String |
Indicates the resource specification code. Use rds.mysql.n1.xlarge.rr as an example.
|
version_name |
Array |
Indicates the database version.
Example value for MySQL: ["5.6","5.7","8.0"] |
instance_mode |
String |
Indicates the DB instance type. Its value can be any of the following:
|
az_status |
Map<String, String> |
Indicates the specification status in an AZ. Its value can be any of the following:
|
az_desc |
Map<String, String> |
Indicates the description of the AZ to which the specifications belong. |
group_type |
String |
Indicates the performance specifications. Its value can be any of the following:
|
{ "flavors": [{ "vcpus": "1", "ram": 2, "id":"2988b9cc-2aac-3a94-898c-14666702f129", "spec_code": "rds.mysql.n1.large.ha", "version_name": ["5.6","5.7","8.0"], "instance_mode": "ha", "az_status": { "az1": "normal", "az2": "normal" }, "az_desc": { "az1": "az1", "az2": "az2" }, "group_type": "normal" }, { "vcpus": "1", "ram": 2, "id":"2988b9cc-2aac-3a94-898c-14666702f130", "spec_code": "rds.mysql.n1.large.rr", "version_name": ["5.6","5.7","8.0"], "instance_mode": "replica", "az_status": { "az1": "normal", "az2": "normal" }, "az_desc": { "az1": "az1", "az2": "az2" }, "group_type": "normal" } ] }
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.