查询系统镜像列表

1. 接口描述

调用 DescribeImageConfig 接口查询您可以使用的系统镜像资源。

2. 请求参数

名称 类型 是否必选 描述
Action String 固定取值:DescribeImageConfig
RegionCode String 镜像所属的地域编码,您可以调用 DescribeRegionConfig 查看最新的地域列表
ZoneCode String 镜像所属的可用区编码,您可以调用 DescribeZoneConfig 查看可用区列表

3. 返回数据

名称 类型 说明
ImageConfigModels ImageConfigModel 系统镜像集合
RequestId String 请求ID

4. 示例

请求示例

https://openapi.kaopuyun.com/?AccessKeyId=sz0000ei53aw
&Action=DescribeImageConfig
&Format=JSON
&RegionCode=cn-fuzhou-5
&SignatureMethod=HMAC-SHA1
&SignatureNonce=76a5d5e7-0992-462d-9a26-916650eca00f
&SignatureVersion=1.0
&Timestamp=2023-03-09T07%3A33%3A56Z
&Version=2014-05-26
&ZoneCode=cn-fuzhou-5-a
&Signature=LH5UYKO7k%2FeQlyLH3p169uyRKyU%3D

正常返回示例

{
    "ImageConfigModels": [{
        "ImageName": "Windows 2012 R2 64位 数据中心版",
        "ImageSize": 50,
        "OsVersion": "windows",
        "ImageUUID": "img-cy0000rcton10",
        "ImageType": "System"
    }, {
        "ImageName": "CentOS 6.9 64位",
        "ImageSize": 50,
        "OsVersion": "linux",
        "ImageUUID": "img-tb04047k1s5ql",
        "ImageType": "System"
    }],
    "RequestId": "c068d0c0-be4c-11ed-8dde-06dde3cb088a"
}

5. 错误码

错误码 错误信息
MissingParameter RegionCode 参数不能为空
MissingParameter ZoneCode 参数不能为空
AvailableRegionNotFound 可用的地域未找到
AvailableZoneNotFound 可用的可用区未找到
DescribeImageConfigureFail 查询系统镜像失败:xxx
kaopuyun all right reserved,powered by GitbookUpdated Time: 2024-09-06 07:49:37

results matching ""

    No results matching ""