文档首页/ 专属主机 DeH/ API参考/ API/ 查询专属主机详情
更新时间:2024-04-16 GMT+08:00

查询专属主机详情

功能介绍

查询某一台专属主机的详情。

URI

GET /v1.0/{project_id}/dedicated-hosts/{dedicated_host_id}

参数说明请参见表1

表1 参数说明

参数

参数类型

是否必选

描述

project_id

String

项目ID。

获取方式请参见获取项目ID

dedicated_host_id

String

专属主机ID。

可以从专属主机控制台查询,或者通过调用查询专属主机列表API获取。

请求消息

响应消息

表2 响应参数

参数

位置

参数类型

描述

dedicated_host

body

Object

专属主机对象。

具体请参见表1

请求示例

查询ID为ab910cf0daebca90c4001的专属主机详情。

GET https://{Endpoint}/v1.0/9c53a566cb3443ab910cf0daebca90c4/dedicated-hosts/ab910cf0daebca90c4001

响应示例

{
    "dedicated_host": {
        "dedicated_host_id": "d465d0ae-f859-4a83-a508-8db654c05e7e",
            "name": "DEH001",
            "auto_placement": "off",
            "availability_zone": "cn-east-3a",
            "host_properties": {
                "vcpus": 74,
                "cores": 22,
                "sockets": 2,
                "memory": 151552,
                "host_type": "c6",
                "host_type_name": "dedicated_general_purpose",
                "available_instance_capacities": [
                    {
                        "flavor": "c6.large.2"
                    },
                    {
                        "flavor": "c6.xlarge.2"
                    },
                    {
                        "flavor": "c6.2xlarge.2"
                    },
                    {
                        "flavor": "c6.3xlarge.2"
                    },
                    {
                        "flavor": "c6.6xlarge.2"
                    },
                    {
                        "flavor": "c6.16xlarge.2"
                    }
                ]
            },
            "state": "available",
            "project_id": "9c53a566cb3443ab910cf0daebca90c4",
            "available_vcpus": 20,
            "available_memory": 40960,
            "instance_total": 5,
            "allocated_at": "2016-10-10T14:35:47Z",
            "released_at": "",
	    "instance_uuids": [
		"erf5th66cb3443ab912ff0daebca3456",
		"23457h66cb3443ab912ff0daebcaer45"
        ]
    }
}

返回值

请参见状态码