This API is used to query all instance specifications under a specified condition.
GET https://{Endpoint}/v3.1/{project_id}/flavors?engine_name={engine_name}&engine_version={engine_version}&offset={offset}&limit={limit}
Name |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. |
engine_name |
No |
Specifies the database type. The value is DDS-Community. |
engine_version |
No |
DB version number. To obtain this value, see Querying Database Version Information. |
offset |
No |
Index offset.
|
limit |
No |
Maximum number of specifications that can be queried
|
Name |
Type |
Description |
|---|---|---|
flavors |
Array of objects |
Indicates the DB instance specifications information list. For more information, see Table 3. |
total_count |
Integer |
Total number of records |
Name |
Type |
Description |
|---|---|---|
engine_name |
String |
Indicates the engine name. |
type |
String |
Indicates the node type. DDS contains the following types of nodes:
|
vcpus |
String |
Indicates the number of vCPUs. |
ram |
String |
Indicates the memory size in gigabyte (GB). |
spec_code |
String |
Indicates the resource specification code. Example: dds.mongodb.s2.xlarge.4.shard NOTE:
|
az_status |
Object |
Indicates the status of specifications in an AZ. Its value can be any of the following:
NOTE:
ReplicaSet flavors supports cross AZ creation in case "eu-de-01,eu-de-02,eu-de-03": "normal". |
engine_versions |
Array of strings |
Database versions For example, DDS mongos node, {"3.4", "4.0"} |
The value of az_status is used as an example.
{
"total_count":21,
"flavors": [
{
"engine_name": "DDS-Community",
"type": "mongos",
"vcpus": "1",
"ram": "4",
"spec_code": "dds.mongodb.s2.medium.4.mongos",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "mongos",
"vcpus": "2",
"ram": "8",
"spec_code": "dds.mongodb.s2.large.4.mongos",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "mongos",
"vcpus": "4",
"ram": "16",
"spec_code": "dds.mongodb.s2.xlarge.4.mongos",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "mongos",
"vcpus": "8",
"ram": "32",
"spec_code": "dds.mongodb.s2.2xlarge.4.mongos",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "mongos",
"vcpus": "16",
"ram": "64",
"spec_code": "dds.mongodb.s2.4xlarge.4.mongos",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "shard",
"vcpus": "1",
"ram": "4",
"spec_code": "dds.mongodb.s2.medium.4.shard",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "shard",
"vcpus": "2",
"ram": "8",
"spec_code": "dds.mongodb.s2.large.4.shard",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "shard",
"vcpus": "4",
"ram": "16",
"spec_code": "dds.mongodb.s2.xlarge.4.shard",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "shard",
"vcpus": "8",
"ram": "32",
"spec_code": "dds.mongodb.s2.2xlarge.4.shard",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "shard",
"vcpus": "16",
"ram": "64",
"spec_code": "dds.mongodb.s2.4xlarge.4.shard",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "config",
"vcpus": "2",
"ram": "4",
"spec_code": "dds.mongodb.s2.large.2.config",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "replica",
"vcpus": "1",
"ram": "4",
"spec_code": "dds.mongodb.s2.medium.4.repset",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal",
"eu-de-01,eu-de-02,eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "replica",
"vcpus": "2",
"ram": "8",
"spec_code": "dds.mongodb.s2.large.4.repset",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal",
"eu-de-01,eu-de-02,eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "replica",
"vcpus": "4",
"ram": "16",
"spec_code": "dds.mongodb.s2.xlarge.4.repset",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal",
"eu-de-01,eu-de-02,eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "replica",
"vcpus": "8",
"ram": "32",
"spec_code": "dds.mongodb.s2.2xlarge.4.repset",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal",
"eu-de-01,eu-de-02,eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "replica",
"vcpus": "16",
"ram": "64",
"spec_code": "dds.mongodb.s2.4xlarge.4.repset",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal",
"eu-de-01,eu-de-02,eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "single",
"vcpus": "1",
"ram": "4",
"spec_code": "dds.mongodb.s2.medium.4.single",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "single",
"vcpus": "2",
"ram": "8",
"spec_code": "dds.mongodb.s2.large.4.single",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "single",
"vcpus": "4",
"ram": "16",
"spec_code": "dds.mongodb.s2.xlarge.4.single",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "single",
"vcpus": "8",
"ram": "32",
"spec_code": "dds.mongodb.s2.2xlarge.4.single",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
},
{
"engine_name": "DDS-Community",
"type": "single",
"vcpus": "16",
"ram": "64",
"spec_code": "dds.mongodb.s2.4xlarge.4.single",
"engine_versions":["3.4","4.0"],
"az_status": {
"eu-de-01": "normal",
"eu-de-02": "normal",
"eu-de-03": "normal"
}
}
]
}
For more information, see Error Code.