跳至主要内容

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

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

OK


Schema
  • create_time date-time
  • id int64
  • is_public boolean
  • name string
  • platform string
  • disk_format string
  • project int64
Loading...