调用DescribeDedicatedHostTypes查询指定地域下专有宿主机规格的详细参数,或者查询专有宿主机规格支持的ECS实例规格族。

请求参数

名称 类型 是否必需 描述
Action String 系统规定参数。取值:DescribeDedicatedHostTypes
RegionId String 地域ID。您可以调用DescribeRegions查看最新的阿里云地域列表。
DedicatedHostType String 专有宿主机规格。更多详情,请参见宿主机规格
SupportedInstanceTypeFamily String 专有宿主机规格支持的ECS实例规格族。

返回参数

名称 类型 描述
DedicatedHostTypes Array of DedicatedHostType 返回专有宿主机规格的信息。
表 1. DedicatedHostType
名称 类型 描述
DedicatedHostType String 专有宿主机规格。如需使用更多专有宿主机规格,可以提交工单联系阿里云。
SupportedInstanceTypeFamilies Array of SupportedInstanceTypeFamilySetType 专有宿主机规格支持的ECS实例规格族。
Sockets Integer 物理处理器(CPU)的数量。
Cores Integer 单个物理CPU的核数。
TotalVcpus Integer 虚拟CPU总核数。
MemorySize Float 内存容量,单位:GiB。
LocalStorageCapacity Long 一块本地盘容量,单位:GiB。
LocalStorageAmount Integer 专有宿主机上的本地盘块数。
LocalStorageCategory String 本地盘类型。
表 2. SupportedInstanceTypeFamilySetType
名称 类型 描述
SupportedInstanceTypeFamily String 专有宿主机规格支持的ECS实例规格族。

示例

请求示例
https://ecs.aliyuncs.com/?Action=DescribeDedicatedHostTypes
&RegionId=cn-hangzhou
&<公共请求参数>
返回示例
  • XML格式
    <DescribeDedicatedHostTypesResponse>
      <DedicatedHostTypes>
        <DedicatedHostType>
          <LocalStorageAmount>0</LocalStorageAmount>
          <Sockets>2</Sockets>
          <DedicatedHostType>ddh.sn1ne</DedicatedHostType>
          <LocalStorageCapacity>0</LocalStorageCapacity>
          <SupportedInstanceTypeFamilies>
            <SupportedInstanceTypeFamily>ecs.sn1ne</SupportedInstanceTypeFamily>
          </SupportedInstanceTypeFamilies>
          <MemorySize>112.0</MemorySize>
          <Cores>32</Cores>
          <TotalVcpus>56</TotalVcpus>
          <LocalStorageCategory/>
        </DedicatedHostType>
        <DedicatedHostType>
          <LocalStorageAmount>0</LocalStorageAmount>
          <Sockets>2</Sockets>
          <DedicatedHostType>ddh.sn2ne</DedicatedHostType>
          <LocalStorageCapacity>0</LocalStorageCapacity>
          <SupportedInstanceTypeFamilies>
            <SupportedInstanceTypeFamily>ecs.sn2ne</SupportedInstanceTypeFamily>
          </SupportedInstanceTypeFamilies>
          <MemorySize>224.0</MemorySize>
          <Cores>32</Cores>
          <TotalVcpus>56</TotalVcpus>
          <LocalStorageCategory/>
        </DedicatedHostType>
      </DedicatedHostTypes>
      <RequestId>5FE5FF06-3A33-4658-8495-6445FC54E327</RequestId>
    </DescribeDedicatedHostTypesResponse>
  • JSON格式
    {
        "DedicatedHostTypes":{
            "DedicatedHostType":[
                {
                    "LocalStorageAmount":0,
                    "Sockets":2,
                    "DedicatedHostType":"ddh.sn1ne",
                    "LocalStorageCapacity":0,
                    "SupportedInstanceTypeFamilies":{
                        "SupportedInstanceTypeFamily":[
                            "ecs.sn1ne"
                        ]
                    },
                    "MemorySize":112,
                    "Cores":32,
                    "TotalVcpus":56,
                    "LocalStorageCategory":""
                },
                {
                    "LocalStorageAmount":0,
                    "Sockets":2,
                    "DedicatedHostType":"dh.c60m83.n1",
                    "LocalStorageCapacity":0,
                    "SupportedInstanceTypeFamilies":{
                        "SupportedInstanceTypeFamily":[
                            "ecs.n1"
                        ]
                    },
                    "MemorySize":84,
                    "Cores":32,
                    "TotalVcpus":40,
                    "LocalStorageCategory":""
                }
            ]
        },
        "RequestId":"9A0FE8A2-720C-45AE-B2D9-813060FCBBF5"
    }

错误码

错误代码 错误信息 HTTP 状态码 说明
InternalError The request processing has failed due to some unknown error,exception or failure. 500 内部错误。