DescribeInstanceTypeFamilies
调用DescribeInstanceTypeFamilies查询云服务器ECS提供的实例规格族列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | DescribeInstanceTypeFamilies |
接口名称。对于您自行拼凑HTTP/HTTPS URL发起的API请求, |
RegionId | String | 是 | cn-hangzhou |
地域ID。您可以调用DescribeRegions查看最新的阿里云地域列表。 |
Generation | String | 否 | ecs-3 |
实例规格族的系列信息。更多详情,请参见实例规格族。取值范围:
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
请求ID。 |
InstanceTypeFamilies | Array |
由实例规格族InstanceTypeFamily组成的集合。 |
|
InstanceTypeFamilyId | String | ecs.g6 |
实例规格族ID。 |
Generation | String | ecs-5 |
实例规格族所属代数。 |
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeInstanceTypeFamilies
&RegionId=cn-hangzhou
&Generation=ecs-5
&<公共请求参数>
正常返回示例
XML
格式
<DescribeInstanceTypeFamiliesResponse>
<InstanceTypeFamilies>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.g6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.ebmg6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.ebmg6e</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.g6e</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.c6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.r6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.t6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.hfc6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.hfg6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.hfr6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.ebmc6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.ebmr6</InstanceTypeFamilyId>
<Generation>ecs-5</Generation>
</InstanceTypeFamily>
</InstanceTypeFamilies>
<RequestId>A66D039A-EC35-4130-B0D1-E9873C0742D2</RequestId>
</DescribeInstanceTypeFamiliesResponse>
JSON
格式
{
"InstanceTypeFamilies": {
"InstanceTypeFamily": [
{
"InstanceTypeFamilyId": "ecs.g6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.ebmg6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.ebmg6e",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.g6e",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.c6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.r6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.t6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.hfc6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.hfg6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.hfr6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.ebmc6",
"Generation": "ecs-5"
},
{
"InstanceTypeFamilyId": "ecs.ebmr6",
"Generation": "ecs-5"
}
]
},
"RequestId": "A66D039A-EC35-4130-B0D1-E9873C0742D2"
}
错误码
访问错误中心查看更多错误码。
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论