请登录后查看
ListFlavorInfos
查询数据库规格
查询指定条件下的实例规格信息。
名称 | 类型 | IN | 必选 | 描述 |
---|---|---|---|---|
x-auth-token | string | header | 是 | 用户Token。 |
project_id | string | path | 是 | 租户在某一region下的project ID。 |
limit | integer | query | 否 | 查询规格信息上限值。
|
offset | integer | query | 否 | 索引位置,偏移量。
|
engine_version | string | query | 否 | 数据库版本号。 |
engine_name | string | query | 否 | 数据库版本类型。取值为“DDS-Community”。 |
Success.
名称 | 类型 | 描述 |
---|---|---|
total_count | integer | 总记录数。 |
flavors | Array of FlavorInfo objects | 实例规格信息列表。 |
名称 | 类型 | 描述 |
---|---|---|
engine_name | string | 引擎名称。 |
type | string | 节点类型。文档数据库包含以下几种节点类型:
|
vcpus | string | CPU核数。 |
ram | string | 内存大小,单位为兆字节。 |
spec_code | string | 资源规格编码。例如:dds.mongodb.c6.xlarge.2.shard。
|
az_status | az_status object | '支持该规格的可用区ID。' 示例:["cn-east-2a","cn-east-2b","cn-east-2c"]。 |
engine_versions | Array of strings | 数据库版本号列表。针对DDS引擎的mongos节点,例如:{"3.4", "4.0"} |
Client or server error.
名称 | 类型 | 描述 |
---|---|---|
error_code | string | 错误码。 |
error_msg | string | 错误消息。 |
"GET https://{endpoint}/v3.1/054e292c9880d4992f02c0196d3ea468/flavors?engine_name=DDS-Community&engine_version=3.4&offset=1&limit=20"
Success.
{
"total_count": 5,
"flavors": [
{
"engine_name": "DDS-Community",
"type": "mongos",
"vcpus": "1",
"ram": "4",
"spec_code": "dds.mongodb.c6.medium.4.mongos",
"engine_versions": [
"3.4",
"4.0"
]
},
{
"engine_name": "DDS-Community",
"type": "shard",
"vcpus": "4",
"ram": "8",
"spec_code": "dds.mongodb.c6.xlarge.2.shard",
"engine_versions": [
"3.4",
"4.0"
]
},
{
"engine_name": "DDS-Community",
"type": "config",
"vcpus": "2",
"ram": "4",
"spec_code": "dds.mongodb.c6.large.2.config",
"engine_versions": [
"3.4"
]
},
{
"engine_name": "DDS-Community",
"type": "replica",
"vcpus": "1",
"ram": "4",
"spec_code": "dds.mongodb.c6.medium.4.repset",
"engine_versions": [
"3.4",
"4.0"
]
},
{
"engine_name": "DDS-Community",
"type": "single",
"vcpus": "16",
"ram": "64",
"spec_code": "dds.mongodb.c6.4xlarge.4.single",
"engine_versions": [
"3.4",
"4.0"
]
}
]
}