POST
/
kvm
/
v2
/
upload_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=2025-01-12T15:30:00Z \
  --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
'
{
  "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

200
application/json
The qcow2 image was successfully uploaded and replaced on the VPS.

The response is of type object.