镜像服务 IMS-使用外部镜像文件制作数据镜像:请求示例

时间:2025-02-12 15:00:35

请求示例

  • 使用外部镜像文件制作数据镜像,其中,镜像标签数据格式为tags,OBS桶中外部镜像文件地址为“"image-test:fedora_data1.qcow2",操作系统为Linux,数据盘大小为40G。
     1 2 3 4 5 6 7 8 9101112
    POST https://{Endpoint}/v1/cloudimages/dataimages/action{  "name": "fedora-data1",  "image_url": "image-test:fedora_data1.qcow2",  "description": "fedora的数据盘1",  "min_disk": 40,  "tags": [    "aaa.111",    "bbb.222"  ],  "os_type": "Linux"}
  • 使用外部镜像文件制作数据镜像,其中,镜像标签数据格式为image_tags,OBS桶中外部镜像文件地址为“"image-test:fedora_data1.qcow2",操作系统为Linux,数据盘大小为40G。
    123456789
    POST https://{Endpoint}/v1/cloudimages/dataimages/action{  "name": "fedora-data2",  "image_url": "image-test:fedora_data1.qcow2",  "description": "fedora的数据盘2",  "min_disk": 40,  "image_tags": [{"key":"aaa","value":"111"},{"key":"bbb","value":"222"}],  "os_type": "Linux"}
support.huaweicloud.com/api-ims/ims_03_0606.html