描述镜像信息

最近更新时间:2020-11-18 12:02:49

DescribeImages(描述镜像信息)

描述当前可使用的镜像信息,包括私有镜像和公共镜像

Request Parameters(请求参数)

ImageId

  • 镜像ID
  • 类型: String
  • 是否可缺省: 是

ImageType

  • 镜像分类
  • 类型: String
  • 是否可缺省: 是,默认system,可选custom、share

Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String
  • 是否可缺省: 否

ImagesSet

Examples(例子)

在cn-beijing-6这个region,描述全部可用镜像

Sample Request(请求)
http://kec.cn-beijing-6.api.ksyun.com/?Action=DescribeImages&Version=2016-03-04
Sample Response(返回)
{
    "RequestId": "037c5fd9-d457-4442-b9fb-31f83a6257ad004",
    "ImagesSet": [
        {
            "ImageId": "b1e3731b-c200-4499-be42-f6bfbbda990e",
            "ContainerFormat": "assembled_image",
            "SnapshotSet": [
                {
                    "SnapshotId": "bdab75eb-af40-4845-80e7-e31bb8dd492b",
                    "DiskType": "ebs_snapshot",
                    "DiskSize": 20,
                    "Type": "system"
                },
                {
                    "SnapshotId": "51b6df42-4525-4704-bbec-2c89a82368df",
                    "DiskType": "ebs_snapshot",
                    "DiskSize": 10,
                    "Type": "data"
                },
                {
                    "SnapshotId": "6d8b9429-6f24-4b23-aba9-b4861df69fac",
                    "DiskType": "ebs_snapshot",
                    "DiskSize": 30,
                    "Type": "data"
                }
            ],
            "Name": "aaa",
            "ImageState": "active",
            "CreationDate": "2020-11-18T11:52:18Z",
            "Platform": "centos-8.0",
            "IsPublic": false,
            "IsNpe": true,
            "UserCategory": "common",
            "SysDisk": 20,
            "Progress": "100",
            "ImageSource": "extend",
            "CloudInitSupport": true,
            "Ipv6Support": false,
            "IsModifyType": false,
            "IsCloudMarket": false
        }
    ]
}

金山云,开启您的云计算之旅

免费注册