政企自服务管理 ESM-查询物理设备资源容量 - QueryCapacitiesOfPhysicalResources:响应

时间:2025-11-26 11:31:40

响应

  • 响应参数

    参数

    是否必选

    类型

    值域

    说明

    code

    String

    返回码。

    msg

    String

    返回消息。

    total

    Integer

    数据条数。

    device_type

    String

    物理设备类型,E CS -计算(物理计算服务器),EVS-存储(物理存储服务器)。

    timestamp

    Long

    时间戳。

    region

    String

    资源所属region中文名。

    zone_type

    String

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

    allocated

    String

    已分配量:vCPU单位为Core核,内存为TB,存储为TB。

    available

    String

    剩余量:vCPU单位为Core核,内存为TB,存储为TB。

    resource_type

    String

    物理服务器的规格型号,如C6XLarge物理计算服务器,SSD盘的物理存储服务器。

    metric_type

    String

    容量指标类型:对应device_type物理资源的类型(计算或存储)所不同。

  • 响应示例
    HTTP/1.1 200 OK 
    Date:Tue,18 Jul 2023 09:58:01 GMT
    Server: example.com
    Content-Type: application/json;charset=UTF8 
    存储 
    { 
        "total": 2, 
        "list": [ 
                 { 
                  "available": "94.5693359375", 
                  "metric_type": "SAS", 
                  "device_type": "EVS", 
                  "zone_type": "MANAGE", 
                  "region": "cn-central-229", 
                  "allocated": "112.2265625", 
                  "resource_type": "SAS", 
                  "timestamp": "1649692800000" 
                  }, 
                 { 
                  "available": "102.4052734375", 
                  "metric_type": "SAS", 
                  "device_type": "EVS", 
                  "zone_type": "MANAGE", 
                  "region": "cn-east-264", 
                  "allocated": "173.3232421875", 
                  "resource_type": "SAS", 
                  "timestamp": "1649692800000" 
                  } 
                  ] 
    } 
    计算 
    { 
        "service_type": "ECS", 
        "total": "44.072265625", 
        "available": "26.486328125", 
        "metric_type": "memory", 
        "zone_type": "KVM_POD", 
        "used": "0", 
        "free": "44.072265625", 
        "used_ratio": "0", 
        "region": "cn-east-264", 
        "resource_count": "0", 
        "allocated": "15.2578125", 
        "resource_type": "C6xLarge", 
        "timestamp": "1649865600000" 
    }, 
    { 
        "service_type": "ECS", 
        "total": "10792", 
        "available": "5408", 
        "metric_type": "vCpu", 
        "zone_type": "KVM_POD", 
        "used": "0", 
        "free": "10792", 
        "used_ratio": "0", 
        "region": "cn-east-264", 
        "resource_count": "0", 
        "allocated": "4964", 
        "resource_type": "M6xLarge", 
        "timestamp": "1649865600000" 
    }
support.huaweicloud.com/api-esm/esm_08_0014.html