-
Notifications
You must be signed in to change notification settings - Fork 0
镜像模块API
xiaoqiangcoding edited this page Feb 15, 2017
·
3 revisions
请求类型: POST
请求URL: /v1.0/admin/admin_create_image
URL路径参数:
名称 | 字段类型 | 说明 |
---|---|---|
token | String | 超级管理员认证token |
request | json | 镜像的相关信息 |
myfile | file | 镜像的数据信息 |
返回数据:返回数据为204的状态码
说明:request的json请求格式如下
{
"container_format": "bare",
"name": "Ubuntu",
"disk_format":"qcow2",
"min_disk" :0,
"min_ram":0,
"protected":true,
"visibility" :"private"
}
file的字段应该以'qcow2', 'ami', 'ari', 'aki', 'vhd', 'vhdx', 'vmdk', 'raw', 'vdi', 'iso' 结尾的文件