政企自服务管理 ESM-查询BMS容量:响应

时间:2025-02-12 14:58:00

响应

  • 响应参数

    参数

    是否必选

    类型

    值域

    说明

    code

    String

    返回码。

    msg

    String

    返回消息。

    total

    Integer

    数据条数。

    service_type

    String

    云服务名,标识资源所属的云服务。BMS裸金属服务。

    timestamp

    Long

    时间戳。

    region

    String

    资源所属region 中文名。

    zone_type

    String

    资源所属区域类型:MANAGE管理区,POD或KVM_POD租户区。

    allocated

    String

    已分配量,xx台(单位)。

    available

    String

    剩余量,xx台(单位)。

    total(list内)

    String

    裸金属服务器可用总量,xx台(单位)。

    metric_type

    String

    裸金属服务器规格型号指标:如physical.kd1ne.2xlarge型号。

  • 响应示例
    HTTP/1.1 200  OK Date:Tue,18 Jul 2023 09:58:01 GMTServer: example.comContent-Type: application/json;charset=UTF8 {     "total": 1,     "list": [              {              "service_type": "BMS",              "total": "4",              "available": "4",              "metric_type": "physical.kd1ne.2xlarge",              "zone_type": "POD",              "used": "0",              "free": "0",              "used_ratio": "0",              "region": "cn-east-264",              "resource_count": "0",              "allocated": "0",              "timestamp": "1650211200000"               }              ] }
support.huaweicloud.com/api-esm/esm_08_0018.html