文档中心 > DescribeImages
DescribeImages

最近更新时间:2021-11-18

请求方法GET

接口描述:使用DescribeImages查看私有镜像列表。


请求参数

Param

名称

类型

是否必选

描述

Action

String

要执行的操作。取值DescribeImages

RegionId

String

区域Id

Page

int

页码,默认1

Size

int

列表容量,默认10

ImageName

String

镜像名筛选

Status

String

镜像状态筛选


返回参数

名称

类型

示例

描述

RequestId

String

"b9de1a62-d09e-4d34-9a61-38f0f56564b6"

请求ID

pageNumber

int

1

请求page

pageSize

int

10

请求size

totalCount

int

2

总条数

images

object[]


内容

+imageId

String

img-j1c4jeif9wi5

镜像ID

+status

String

Available

状态

+imageName

String

TotalImage

镜像名

+operatingSystem

String

centos7.5

操作系统

+regionId

String

cn-beijing

地区ID

+zoneId

String

cn-beijing-a

可用区ID

+size

int

40

大小

+creationTime

Long

1594869082000

创建使劲按

+dataImageInfo

object[]


数据盘镜像信息

++imageId

String

img-j1c4jeif9wi5

所属镜像ID

++templateId

String

img-j1c4jeik9o59

数据盘镜像ID

++size

int

20

数据盘镜像大小


示例

请求示例

GET https://api.unicloud.com/compute/ecs/instances?

Action=DescribeImages

&RegionId=cn-beijing

&Page=1

&Size=10

&Status=Available

&公共请求参数


返回示例

JSON格式

{

"RequestId": "b9de1a62-d09e-4d34-9a61-38f0f56564b6",

    "images": [

        {

            "imageId": "img-j1c4jeif9wi5",

            "status": "Available",

            "imageName": "TotalImage",

            "operatingSystem": "centos7.5",

            "regionId": "cn-beijing",

            "zoneId": "cn-beijing-a",

            "size": 40,

            "creationTime": 1594869082000,

            "dataImageInfo": [

                {

                    "imageId": "img-j1c4jeif9wi5",

                    "templateId": "img-j1c4jeik9o59",

                    "size": 20

                }

            ],

            "ostype": "linux"

        },

        {

            "imageId": "img-j1c4eq5a6yso",

            "status": "Available",

            "imageName": "TestImage",

            "operatingSystem": "centos7.5",

            "regionId": "cn-beijing",

            "zoneId": "cn-beijing-a",

            "size": 40,

            "creationTime": 1594868995000,

            "dataImageInfo": [],

            "ostype": "linux"

        }

    ],

    "pageNumber": 1,

    "pageSize": 10,

    "totalCount": 2

}