storage
Create storage import
Creates an asynchronous task that imports a raw disk image into existing Block Storage from an HTTP URL or a temporary direct-upload URL. Attached Cloud Servers must be stopped.
post/1.3/storage/{uuid}/import
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/storage/{uuid}/import
- Auth: HTTP bearer
Path parameters
uuidstring uuid required
Universally unique identifier
Example:0414e0d7-4436-4037-9dd8-6eaf47dce599
Storage resource UUID
Request body
Example request
{
"storage_import": {
"source": "http_import",
"source_location": "https://example.com/disk.raw"
}
}Response
Storage import created
Example response
{
"storage_import": {
"client_content_length": 0,
"client_content_type": "",
"completed": "",
"created": "2020-06-26T08:51:07Z",
"direct_upload_url": "https://fi-hel1.img.upcloud.com/uploader/session/07a6c9a3-300e-4d0e-b935-624f3dbdff3f",
"error_code": "",
"error_message": "",
"md5sum": "",
"read_bytes": 0,
"sha256sum": "",
"source": "direct_upload",
"state": "prepared",
"uuid": "07a6c9a3-300e-4d0e-b935-624f3dbdff3f",
"written_bytes": 0
}
}Changes
No recorded changes to this operation across all 1 revision of this API.