文档数据库服务 DDS-查询所有实例规格信息:响应消息

时间:2024-12-04 09:31:56

响应消息

  • 参数说明
    表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

    说明:
    • “dds”表示文档数据库服务产品。
    • “dds.mongodb”表示文档数据库服务产品。
    • “c6.xlarge.2”表示节点性能规格,为高内存类型。
    • “shard”表示节点类型。
    • 查询规格时,注意区分是否为同系列的规格。规格系列包括:通用型(s6)、增强型(c3)、增强Ⅱ型(c6)。
      示例:
      • dds.mongodb.s6.large.4.mongos和dds.mongodb.s6.large.4.config是同一规格系列。
      • dds.mongodb.s6.large.4.mongos和dds.mongodb.c3.large.4.config不是同一规格系列。

    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"
                }
            }
        ]
    }
support.huaweicloud.com/api-dds/dds_api_0125.html