Apache CloudStack 4.14.1.0-SNAPSHOT Root Admin API Reference
getUploadParamsForTemplate
upload an existing template into the CloudStack cloud.
Request parameters
| Parameter Name | Description | Required |
| displaytext | the display text of the template. This is usually used for display purposes. | true |
| format | the format for the volume/template. Possible values include QCOW2, OVA, and VHD. | true |
| hypervisor | the target hypervisor for the template | true |
| name | the name of the volume/template | true |
| ostypeid | the ID of the OS Type that best represents the OS of this template. | true |
| zoneid | the ID of the zone the volume/template is to be hosted on | true |
| account | an optional accountName. Must be used with domainId. | false |
| bits | 32 or 64 bits support. 64 by default | false |
| checksum | the checksum value of this volume/template The parameter containing the checksum will be considered a MD5sum if it is not prefixed and just a plain ascii/utf8 representation of a hexadecimal string. If it is required to use another algorithm the hexadecimal string is to be prefixed with a string of the form, "{<algorithm>}", not including the double quotes. In this <algorithm> is the exact string representing the java supported algorithm, i.e. MD5 or SHA-256. Note that java does not contain an algorithm called SHA256 or one called sha-256, only SHA-256. | false |
| details | Template details in key/value pairs. | false |
| domainid | an optional domainId. If the account parameter is used, domainId must also be used. | false |
| isdynamicallyscalable | true if template contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory | false |
| isextractable | true if the template or its derivatives are extractable; default is false | false |
| isfeatured | true if this template is a featured template, false otherwise | false |
| ispublic | true if the template is available to all accounts; default is true | false |
| isrouting | true if the template type is routing i.e., if template is used to deploy router | false |
| passwordenabled | true if the template supports the password reset feature; default is false | false |
| projectid | Upload volume/template for the project | false |
| requireshvm | true if this template requires HVM | false |
| sshkeyenabled | true if the template supports the sshkey upload feature; default is false | false |
| templatetag | the tag for this template. | false |
Response Tags
| Response Name | Description |
| id | the template/volume ID |
| expires | the timestamp after which the signature expires |
| metadata | encrypted data to be sent in the POST request. |
| postURL | POST url to upload the file to |
| signature | signature to be sent in the POST request. |