Imports

Initiate a .cube archive import (browser-side multipart upload)

post/spaces/{spaceId}/cubes/imports

Request

  • Base URL: https://krova.cloud/api/v1
  • URL: https://krova.cloud/api/v1/spaces/{spaceId}/cubes/imports
  • Auth: API key in header X-API-KEY

Path parameters

spaceIdstring required

Request body

namestring required
fileSizeBytesinteger required
sshKeyMode'replace' | 'keep'

What to do with SSH access on the imported rootfs. replace (default) writes sshPublicKey to the login user's authorized_keys and requires sshPublicKey to be set. keep leaves the image's own authorized_keys and sshd configuration completely untouched — nothing is written — so you must already hold a private key that the image accepts, or you will not be able to log in.

sshPublicKeystring nullable

Public key to install when sshKeyMode is replace. Written to the login user's ~/.ssh/authorized_keys — which user that is comes from the imported rootfs itself, so an image without a Krova default user keeps logging in as root. Ignored when sshKeyMode is keep.

regionstring nullable
vcpusOverrideinteger nullable
ramMbOverrideinteger nullable
diskGbOverrideinteger nullable
userDatastring nullable

Response

Import initiated; returns presigned part URLs

importIdstring
uploadIdstring
keystring
chunkSizeBytesinteger
expiresAtstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.