Apache CloudStack 4.23.0.0 Root Admin API Reference
getUploadParamsForVolume
Upload a data disk to the cloudstack cloud.
Request parameters
| Parameter Name | Description | Required |
| format | The format for the Volume/Template/ISO. Possible values include QCOW2, OVA, and VHD. | true |
| name | The name of the Volume/Template/ISO | true |
| zoneid | The ID of the zone the Volume/Template/ISO is to be hosted on | true |
| account | An optional accountName. Must be used with domainId. | false |
| checksum | The checksum value of this Volume/Template/ISO 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 |
| diskofferingid | The ID of the disk offering. This must be a custom sized offering since during upload of volume/template size is unknown. | false |
| domainid | An optional domainId. If the Account parameter is used, domainId must also be used. | false |
| imagestoreuuid | Image store uuid | false |
| projectid | Upload Volume/Template/ISO for the project | 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. |