Replace qcow2
This endpoint uploads and replaces the current qcow2 image on the specified KVM VPS.
Warning: All data on the VPS will be permanently lost if this operation is performed.
The api_host
parameter, obtained from the “Create AUTH-session” response,
is dynamically set in the URL.
Provide the signature
, kvm_id
, valid_until
, and confirm data replacement by including yes_purge_all_my_data
parameter.
Body
The session signature obtained from the "Create AUTH-session" call.
"session_signature_12345"
The unique identifier of the KVM VPS where the qcow2 image will be replaced.
This value is specific to your VPS.
"kvm_xxxxx_yyyyy"
The expiration timestamp for the session, as obtained from the "Create AUTH-session" call.
Ensure that the session is valid and has not expired.
"2025-01-12T15:30:00Z"
Confirmation to purge all data on the VPS.
This parameter must be set to 1
to proceed.
1
The qcow2 file to upload.
Provide the full path to the file.
The new root password for the VPS.
Used if cloud-init is enabled.
"new-root-password"
Optional cloud-init configuration for the VPS.
See Cloud-init Documentation for examples.
"#cloud-config\nuser: root\npassword: \"new-root-password\"\nssh_pwauth: True\n"
Response
The status of the operation.
"success"
Was this page helpful?