CreateImage
VCS-image-1019 This API just create a metadata in database. You need to use "Upload an Image" API to put an image to repository.
Header Parameters
- x-api-host string required
Default value:
openstack-taichung-default-2
Authentication Required Parameters
- application/json
Request Body
- name string
Image name
- os string
Linux or Windows
- os_version string
Operating System Version
- project int32
Project ID
- disk_format string
Possible values: [
raw
,qcow2
,vdi
,iso
,vhd
,vhdx
,ami
,ari
,aki
,vmdk
,ploop
]Image Disk Format
- desc string
Description
- metadata_only boolean
If it is true, the image will be created into the database only. When this value is true, there must be an image with a name given by the field 'name' in the backend. The value is false by default.
- license_type string
Image license type
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- create_time date-time
- id int64
- is_public boolean
- name string
- platform string
- disk_format string
- project int64
{
"create_time": "2024-08-19",
"id": 0,
"is_public": true,
"name": "string",
"platform": "string",
"disk_format": "string",
"project": 0
}
Loading...