本篇文章给大家带来的内容是关于如何查询用户可以使用的镜像资源,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
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错误中心。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END