這篇文章帶給大家的內容是關於如何查詢使用者可以使用的鏡像資源,有一定的參考價值,有需要的朋友可以參考一下,希望對你有幫助。
DescribeImages
描述
#您可以查詢的鏡像資源包括您的自訂鏡像、阿里雲提供的公共鏡像、雲端市場鏡像以及其他阿里雲用戶主動分享給您的共享鏡像。
支援分頁查詢,查詢結果包括可使用的鏡像資源的總數和目前頁的鏡像資源。每頁的數量預設為10條。
請求參數
# 傳回參數
##範例
#請求範例
https://ecs.aliyuncs.com/?Action=DescribeImages &RegionId=cn-hangzhou &<公共请求参数>
傳回範例
XML格式
<DescribeImagesResponse> <Images> <Image> <Architecture>i386</Architecture> <CreationTime>2014-07-22T09:53:44Z</CreationTime> <Description></Description> <DiskDeviceMappings> <DiskDeviceMapping> <Device>/dev/xvda</Device> <Size>20</Size> <SnapshotId></SnapshotId> </DiskDeviceMapping> </DiskDeviceMappings> <ImageId>suse11sp3_64_20G_aliaegis_20150428.vhd</ImageId> <ImageName>suse11sp3_64_20G_aliaegis_20150428.vhd</ImageName> <ImageOwnerAlias>system</ImageOwnerAlias> <ImageVersion>1.0</ImageVersion> <IsCopied>false</IsCopied> <IsSubscribed>false</IsSubscribed> <OSName>SUSE Linux Enterprise Server 11 SP3 64位</OSName> <ProductCode></ProductCode> <OSType>linux</OSType> <Platform>SUSE</Platform> <Progress>100</Progress> <Size>20</Size> <Status>Available</Status> <Usage>instance</Usage> </Image> </Images> <PageNumber>1</PageNumber> <PageSize>2</PageSize> <RegionId>cn-hangzhou</RegionId> <TotalCount>24</TotalCount> <RequestId>7871BB26-3002-4950-B2E6-98D333077EA5</RequestId> </DescribeImagesResponse>
JSON格式##
{ "Images": { "Image": [ { "Architecture": "x86_64", "CreationTime": "2015-05-06T09:01:32Z", "DiskDeviceMappings": { "DiskDeviceMapping": [ { "Device": "/dev/xvda", "Size": "20" } ] }, "ImageId": "suse11sp3_64_20G_aliaegis_20150428.vhd", "ImageName": "suse11sp3_64_20G_aliaegis_20150428.vhd", "ImageOwnerAlias": "system", "ImageVersion": "1", "IsCopied": false, "IsSubscribed": false, "OSName": "SUSE Linux Enterprise Server 11 SP3 64位", "OSType": "linux", "Platform": "SUSE", "Progress": "100%", "Size": 20, "Status": "Available", "Usage": "instance" } ] } "PageNumber": 1, "PageSize": 1, "RegionId": "cn-hangzhou", "RequestId": "49CBCED4-C9B9-4851-BEB5-8FB5E5169E30", "TotalCount": 24 }
錯誤碼
以下為本介面特有的錯誤碼。更多錯誤碼,請造訪 API錯誤中心。以上是如何查詢使用者可以使用的鏡像資源的詳細內容。更多資訊請關注PHP中文網其他相關文章!