POST
/
kvm
/
v2
/
upload_qcow2
Upload and replace qcow2
curl --request POST \
  --url https://{api_host}.edisglobal.com/kvm/v2/upload_qcow2 \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data signature=session_signature_12345 \
  --data kvm_id=kvm_xxxxx_yyyyy \
  --data valid_until=1737476000 \
  --data yes_purge_all_my_data=1 \
  --data pw=new-root-password \
  --data 'cloudinit_user_data=#cloud-config
user: root
password: "new-root-password"
ssh_pwauth: True
' \
  --data 'file={
  "fileName": "example-file"
}'
{
  "status": "success"
}

Body

application/x-www-form-urlencoded

Required parameters to upload and replace the qcow2 image.
All parameters must be passed in the request body as application/x-www-form-urlencoded or as file upload where specified.

The body is of type object.

Response

The qcow2 image was successfully uploaded and replaced on the VPS.

The response is of type object.