...
A new API getUploadParams . To upload a to enable users to upload volume/template , the user has to make this api call and get the POST url to which the file has to be uploaded. from a local or network file share. The API response has a POST URL to which the volume/template needs to be uploaded. This is available to regular and admin users of Cloudstack. The request and response parameters are described below (all required parameters are in bold font)
- Request
- type: type of upload request. Possible values are volume
Request - type: volume or template : required
- params while uploading a type = volume
- format: the format for of the volume to be uploaded. Possible values include QCOW2, OVA, and VHD : required
- name: the name of the volume : required
- zoneid: the ID UUID of the zone the volume is associated to be hosted on : required
- account: an optional accountNameaccount name. Must be used with domainId.'domainid' parameter below.
- checksum: the MD5 checksum of volume to be uploaded. If specified this is used to validate the content of the uploaded volume for integrity.checksum: the MD5 checksum value of this volume
- domainid: an optional domainIddomain to which the account belongs. If the account parameter is used, domainId 'domainid' must also be used.
- imagestoreuuid: Image store uuid. The uuid of an imagestore can be obtained by doing listImageStores api the UUID of the storage pool where the uploaded volume gets stored. This can be obtained using listImageStores API call (https://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/listImageStores.html)
- projectid: Upload volume for the project
- type = templateparams while uploading a tempalte
- displaytext: the display text of the template. This is usually used for display purposes : required
- format: the format for the template to be uploaded. Possible values include QCOW2, RAW, and VHD : required
- hypervisor: the target hypervisor for the template : required
- name: the name of the template template : required
- ostypeid: the ID of the OS Type that best represents the OS of this template : required
- zoneid: the ID of the zone the template is to be hosted on : required
- account: an optional accountName. Must be used with domainId.
- bits: 32 or 64 bits support. 64 by default
- checksum: the MD5 checksum value of this template
- details: Template details in key/value pairs.
- domainid: an optional domainId. If the account parameter is used, domainId must also be used.
- isdynamicallyscalable: true if template contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory
- isextractable: true if the template or its derivatives are extractable; default is false
- isfeatured: true if this template is a featured template, false otherwise
- ispublic: true if the template is available to all accounts; default is true
- isrouting: true if the template type is routing i.e., if template is used to deploy router
- passwordenabled: true if the template supports the password reset feature; default is false
- projectid: Register template for the project
- requireshvm: true if this template requires HVM
- sshkeyenabled: true if the template supports the sshkey upload feature; default is false
- templatetag: the tag for this template.
...