首頁 >運維 >linux運維 >如何查詢雲端伺服器 ECS 提供的實例規格族資源

如何查詢雲端伺服器 ECS 提供的實例規格族資源

坏嘻嘻
坏嘻嘻原創
2018-09-20 13:34:352231瀏覽

本文在介紹如何查詢雲端伺服器 ECS 提供的實例規格族資源的基礎上,重點探討了其具體步驟,本文內容緊湊,希望大家可以有所收穫。

DescribeInstanceTypeFamilies

請求參數

如何查詢雲端伺服器 ECS 提供的實例規格族資源

如何查詢雲端伺服器 ECS 提供的實例規格族資源

傳回參數

##############################請求範例## ####
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"
}

以上是如何查詢雲端伺服器 ECS 提供的實例規格族資源的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn