ims__CreateDataImage
Creates a data disk image from an external image file stored in an OBS bucket and submits an asynchronous image creation request; query the task to confirm completion.
Instructions
[IMS] 使用上传至OBS桶中的外部数据卷镜像文件制作数据镜像。作为异步接口,调用成功,只是说明后台收到了制作请求,镜像是否制作成功需要通过异步任务查询接口查询该任务的执行状态。具体请参考异步任务查询。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_url": "<image_url>",
"min_disk": "<min_disk>",
"name": "<name>"
},
"name": "ims__CreateDataImage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 镜像名称。 | |
| tags | No | 镜像标签列表。默认为空。 | |
| cmk_id | No | 创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。 | |
| os_type | No | 操作系统类型。只能是Windows、Linux二者之一,默认Linux。 | |
| min_disk | Yes | 最小数据盘大小。取值范围40-2048GB。 | |
| image_url | Yes | OBS桶中外部镜像文件地址。格式为<OBS桶名>:<OBS镜像文件名称>。 此处的OBS桶和镜像文件的存储类别必须是OBS标准存储。 | |
| image_tags | No | 新规范的镜像标签列表。默认为空。 | |
| description | No | 镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。 | |
| enterprise_project_id | No | 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目;取值为UUID,表示属于该UUID对应的企业项目。 | 0 |