查詢Elastic Compute Service 提供的執行個體規格類型系列資源。更多詳情,請參閱 執行個體規格類型系列。
請求參數
名稱 | 類型 | 是否必需 | 描述 |
---|---|---|---|
Action | String | 是 | 系統規定參數。取值:DescribeInstanceTypeFamilies |
RegionId | String | 是 | 地域 ID。您可以調用 DescribeRegions 查看最新的阿里雲地域列表。 |
Generation | String | 否 | 執行個體規格類型系列的系列資訊。取值範圍:
|
返回參數
名稱 | 類型 | 描述 |
---|---|---|
InstanceTypeFamilies | InstanceTypeFamilyItemType | 由執行個體規格類型系列 InstanceTypeFamilyItemType 組成的集合 |
樣本
請求樣本
https://ecs.aliyuncs.com/?Action=DescribeInstanceTypeFamilies
&RegionId=cn-hangzhou
&<公共請求參數>
返回樣本
XML 格式
<DescribeInstanceTypeFamiliesResponse>
<InstanceTypeFamilies>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.t1</InstanceTypeFamilyId>
<Generation>ecs-1</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.s2</InstanceTypeFamilyId>
<Generation>ecs-1</Generation>
</InstanceTypeFamily>
<InstanceTypeFamily>
<InstanceTypeFamilyId>ecs.s3</InstanceTypeFamilyId>
<Generation>ecs-1</Generation>
</InstanceTypeFamily>
</InstanceTypeFamilies>
<RequestId>6B187E0A-C075-4D08-8B6F-6213950E8733</RequestId>
</DescribeInstanceTypeFamiliesResponse>
JSON 格式
{
"InstanceTypeFamilies":{
"InstanceTypeFamily":[
{
"InstanceTypeFamilyId":"ecs.t1",
"Generation":"ecs-1"
},
{
"InstanceTypeFamilyId":"ecs.s2",
"Generation":"ecs-1"
},
{
"InstanceTypeFamilyId":"ecs.s3",
"Generation":"ecs-1"
}
]
},
"RequestId":"6B187E0A-C075-4D08-8B6F-6213950E8733"
}
錯誤碼
全是公共錯誤碼。更多錯誤碼,請訪問 API 錯誤中心。