文档数据库服务 DDS-查询所有实例规格信息:响应消息
响应消息
- 参数说明
表2 参数说明 名称
参数类型
描述
flavors
Array of objects
实例规格信息列表。详情请参见表3。
表3 flavors字段数据结构说明 名称
参数类型
描述
engine_name
String
引擎名称。
type
String
节点类型。文档数据库包含以下几种节点类型:
- mongos
- shard
- config
- replica
- single
vcpus
String
CPU核数。
ram
String
内存大小,单位为GB。
spec_code
String
资源规格编码。
示例:dds.mongodb.c6.xlarge.2.shard
az_status
Object
规格在可用区内的状态,包含以下状态:
- normal,在售。
- unsupported,暂不支持该规格。
- sellout,售罄。
响应示例中“az_status”字段下可用区的值为示例值。
- 响应示例
{ "flavors": [ { "engine_name": "DDS-Community", "type": "mongos", "vcpus": "1", "ram": "4", "spec_code": "dds.mongodb.c6.medium.4.mongos", "az_status": { "cn-north-1a": "unsupported", "cn-north-1b": "normal", "cn-north-1c": "normal", "cn-north-1a,cn-north-1b,cn-north-1c": "unsupported" } }, { "engine_name": "DDS-Community", "type": "shard", "vcpus": "4", "ram": "8", "spec_code": "dds.mongodb.c6.xlarge.2.shard", "az_status": { "cn-north-1a": "sellout", "cn-north-1b": "normal", "cn-north-1c": "normal", "cn-north-1a,cn-north-1b,cn-north-1c": "unsupported" } }, { "engine_name": "DDS-Community", "type": "config", "vcpus": "2", "ram": "4", "spec_code": "dds.mongodb.c6.large.2.config", "az_status": { "cn-north-1a": "normal", "cn-north-1b": "normal", "cn-north-1c": "normal", "cn-north-1a,cn-north-1b,cn-north-1c": "normal" } }, { "engine_name": "DDS-Community", "type": "replica", "vcpus": "1", "ram": "4", "spec_code": "dds.mongodb.c6.medium.4.repset", "az_status": { "cn-north-1a": "normal", "cn-north-1b": "normal", "cn-north-1c": "normal", "cn-north-1a,cn-north-1b,cn-north-1c": "normal" } }, { "engine_name": "DDS-Community", "type": "single", "vcpus": "16", "ram": "64", "spec_code": "dds.mongodb.c6.4xlarge.4.single", "az_status": { "cn-north-1a": "normal", "cn-north-1b": "normal", "cn-north-1c": "normal", "cn-north-1a,cn-north-1b,cn-north-1c": "normal" } } ] }