curl --request POST \
--url https://{api_host}/kvm/v2/set/mount \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data signature=session_signature_12345 \
--data kvm_id=kvm_xxxxx_yyyyy \
--data valid_until=1737476000 \
--data iso=SystemRescue-10.02-amd64.iso \
--data force_reset=noimport requests
url = "https://{api_host}/kvm/v2/set/mount"
payload = {
"signature": "session_signature_12345",
"kvm_id": "kvm_xxxxx_yyyyy",
"valid_until": "1737476000",
"iso": "SystemRescue-10.02-amd64.iso",
"force_reset": "no"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
signature: 'session_signature_12345',
kvm_id: 'kvm_xxxxx_yyyyy',
valid_until: '1737476000',
iso: 'SystemRescue-10.02-amd64.iso',
force_reset: 'no'
})
};
fetch('https://{api_host}/kvm/v2/set/mount', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{api_host}/kvm/v2/set/mount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "signature=session_signature_12345&kvm_id=kvm_xxxxx_yyyyy&valid_until=1737476000&iso=SystemRescue-10.02-amd64.iso&force_reset=no",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{api_host}/kvm/v2/set/mount"
payload := strings.NewReader("signature=session_signature_12345&kvm_id=kvm_xxxxx_yyyyy&valid_until=1737476000&iso=SystemRescue-10.02-amd64.iso&force_reset=no")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{api_host}/kvm/v2/set/mount")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("signature=session_signature_12345&kvm_id=kvm_xxxxx_yyyyy&valid_until=1737476000&iso=SystemRescue-10.02-amd64.iso&force_reset=no")
.asString();require 'uri'
require 'net/http'
url = URI("https://{api_host}/kvm/v2/set/mount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "signature=session_signature_12345&kvm_id=kvm_xxxxx_yyyyy&valid_until=1737476000&iso=SystemRescue-10.02-amd64.iso&force_reset=no"
response = http.request(request)
puts response.read_body{
"status": "success"
}{
"error": "Invalid parameters provided.",
"code": 400
}{
"error": "Invalid or expired session signature.",
"code": 401
}{
"error": "Access to this resource is denied.",
"code": 403
}{
"error": "An unexpected error occurred on the server.",
"code": 500
}Mount ISO
This endpoint mounts an ISO file to the specified KVM VPS.
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 iso parameters.
Optionally, you can include force_reset to reset the VPS and boot from the mounted ISO.
curl --request POST \
--url https://{api_host}/kvm/v2/set/mount \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data signature=session_signature_12345 \
--data kvm_id=kvm_xxxxx_yyyyy \
--data valid_until=1737476000 \
--data iso=SystemRescue-10.02-amd64.iso \
--data force_reset=noimport requests
url = "https://{api_host}/kvm/v2/set/mount"
payload = {
"signature": "session_signature_12345",
"kvm_id": "kvm_xxxxx_yyyyy",
"valid_until": "1737476000",
"iso": "SystemRescue-10.02-amd64.iso",
"force_reset": "no"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
signature: 'session_signature_12345',
kvm_id: 'kvm_xxxxx_yyyyy',
valid_until: '1737476000',
iso: 'SystemRescue-10.02-amd64.iso',
force_reset: 'no'
})
};
fetch('https://{api_host}/kvm/v2/set/mount', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{api_host}/kvm/v2/set/mount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "signature=session_signature_12345&kvm_id=kvm_xxxxx_yyyyy&valid_until=1737476000&iso=SystemRescue-10.02-amd64.iso&force_reset=no",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{api_host}/kvm/v2/set/mount"
payload := strings.NewReader("signature=session_signature_12345&kvm_id=kvm_xxxxx_yyyyy&valid_until=1737476000&iso=SystemRescue-10.02-amd64.iso&force_reset=no")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{api_host}/kvm/v2/set/mount")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("signature=session_signature_12345&kvm_id=kvm_xxxxx_yyyyy&valid_until=1737476000&iso=SystemRescue-10.02-amd64.iso&force_reset=no")
.asString();require 'uri'
require 'net/http'
url = URI("https://{api_host}/kvm/v2/set/mount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "signature=session_signature_12345&kvm_id=kvm_xxxxx_yyyyy&valid_until=1737476000&iso=SystemRescue-10.02-amd64.iso&force_reset=no"
response = http.request(request)
puts response.read_body{
"status": "success"
}{
"error": "Invalid parameters provided.",
"code": 400
}{
"error": "Invalid or expired session signature.",
"code": 401
}{
"error": "Access to this resource is denied.",
"code": 403
}{
"error": "An unexpected error occurred on the server.",
"code": 500
}Body
Required parameters to mount an ISO to the VPS.
All parameters must be passed in the request body as application/x-www-form-urlencoded.
The session signature obtained from the "Create AUTH-session" call.
"session_signature_12345"
The unique identifier of the KVM VPS where the ISO will be mounted.
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.
"1737476000"
The name of the ISO file to mount.
Use the get ISO Images endpoint to retrieve a list of available ISO files.
"SystemRescue-10.02-amd64.iso"
(Optional) Whether to reset the VPS and boot from the ISO after mounting.
Acceptable values: yes or no. Defaults to no.
"no"
Response
The ISO was successfully mounted to the VPS.
The status of the operation.
"success"
Related topics
Mount an ISO imageUpload a Custom ISO imageHow to reset Windows Administrator passwordHow to Reset Linux root PasswordResize Linux Disk After VPS Plan UpgradeWas this page helpful?