ims__CreateImage
Create private images from cloud servers, external image files, or data disks in Huawei Cloud IMS, with options for name, type, architecture, tags, and encryption.
Instructions
[IMS] 本接口用于制作私有镜像,支持:
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ims__CreateImage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | 镜像名称 | |
| tags | No | 镜像标签列表。默认为空。tags和image_tags只能使用一个。 | |
| type | No | 镜像的类型。 | ECS |
| cmk_id | No | 创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。 | |
| max_ram | No | 表示镜像支持的最大内存,单位为MB。 | |
| min_ram | No | 表示镜像支持的最小内存,单位为MB,默认为0,表示不受限制。 | |
| min_disk | No | 最小系统盘大小。 | |
| image_url | No | OBS桶中外部镜像文件地址。 | |
| is_config | No | 是否自动配置。 | |
| volume_id | No | 数据盘的卷ID。当数据盘创建系统盘镜像时,该参数必选 | |
| image_tags | No | 新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。 | |
| os_version | No | 操作系统版本。 | |
| data_images | No | 需要转换的数据盘信息,其中,当使用云服务器上的数据盘进行私有数据盘镜像创建时,该字段必选。 | |
| description | No | 镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。 | |
| instance_id | No | 需要转换的云服务器ID。使用instance_id字段,从云服务器制作私有镜像时,该字段填写云服务器ID。 | |
| architecture | No | 镜像的架构类型。取值包括: | x86 |
| is_quick_import | No | 是否使用镜像文件快速导入方式,导入系统盘镜像。 | |
| hw_firmware_type | No | 云主机云服务器的启动方式。目前支持: | |
| enterprise_project_id | No | 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。 |