开发者社区> 问答> 正文

Swarm API参考  集群API列表  查看镜像列表

[font=PingFangSC, "]查看目前所支持的地域下支持的镜像列表。

请求信息


请求行 RequestLineGET /images HTTP/1.1
特有请求头 RequestHead
无,请参考 公共请求头部
请求体 RequestBody


返回信息


返回行 ResponseLineH TTP/1.1 200 OK
特有返回头 ResponseHead
无,请参考 公共返回头部
返回体 ResponseBody
{
    "<RegionID>": {
        "items": [
            {
                "text": "<ImageName>",
                "value": "<ImageID>"
            },
            {
                "text": "<ImageName>",
                "value": "<ImageID>"
            }
        ]
    }
}

返回体解释
Image 的格式

[tr=rgb(51, 205, 229)][td]名称 类型描述textstring镜像名称。valueString镜像 ID。

示例


请求示例GET /images HTTP/1.1<公共请求头>
返回示例
HTTP/1.1 200 OK
<公共响应头>
{
    "ap-northeast-1": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "ap-southeast-1": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "ap-southeast-2": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "ap-southeast-3": {
        "items": [
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            },
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            }
        ]
    },
    "cn-beijing": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "cn-beijing-hpc": {
        "items": [
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            },
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            }
        ]
    },
    "cn-hangzhou": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "cn-hongkong": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "cn-huhehaote": {
        "items": [
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            },
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            }
        ]
    },
    "cn-qingdao": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "cn-shanghai": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "cn-shenzhen": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "cn-zhangjiakou": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "eu-central-1": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "us-east-1": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    },
    "us-west-1": {
        "items": [
            {
                "text": "CentOS 7.4 64位",
                "value": "centos_7_04_64_20G_alibase_201701015.vhd"
            },
            {
                "text": "Ubuntu 16.04 64位",
                "value": "ubuntu_16_0402_64_20G_alibase_20170818.vhd"
            }
        ]
    }
}


展开
收起
青蛙跳 2018-08-31 23:27:21 1514 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载