镜像服务 IMS-创建镜像元数据(OpenStack原生):请求示例

时间:2023-12-15 10:36:51

请求示例

创建镜像元数据,其中,镜像操作系统为“Ubuntu 14.04 server 64bit”,容器格式为“bare”、镜像格式为“vhd”、镜像运行需要的最小磁盘为100GB、镜像运行需要的最小内存为1024MB。

POST https://{Endpoint}/v2/images
{
    "__os_version": "Ubuntu 14.04 server 64bit",
    "container_format": "bare",
    "disk_format": "vhd",
    "min_disk": 100,
    "min_ram": 1024,
    "name": "test",
    "tags": [
        "test=testvalue",
        "image=imagevalue"
    ],
    "visibility": "private",
    "protected": false
}
support.huaweicloud.com/api-ims/ims_03_0707.html