curl --request POST \
--url https://{api_host}/kvm/v2/get/all_details \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data signature=session_signature_98765 \
--data kvm_id=kvm_100200_300400 \
--data valid_until=1737476000import requests
url = "https://{api_host}/kvm/v2/get/all_details"
payload = {
"signature": "session_signature_98765",
"kvm_id": "kvm_100200_300400",
"valid_until": "1737476000"
}
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_98765',
kvm_id: 'kvm_100200_300400',
valid_until: '1737476000'
})
};
fetch('https://{api_host}/kvm/v2/get/all_details', 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/get/all_details",
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_98765&kvm_id=kvm_100200_300400&valid_until=1737476000",
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/get/all_details"
payload := strings.NewReader("signature=session_signature_98765&kvm_id=kvm_100200_300400&valid_until=1737476000")
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/get/all_details")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("signature=session_signature_98765&kvm_id=kvm_100200_300400&valid_until=1737476000")
.asString();require 'uri'
require 'net/http'
url = URI("https://{api_host}/kvm/v2/get/all_details")
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_98765&kvm_id=kvm_100200_300400&valid_until=1737476000"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"hw": {
"ram": "1024",
"disk": "8192",
"cpu_set_cores": "4",
"drive_boost": "204800"
},
"suspended": "n",
"ip": {
"ipv4": [
"192.168.1.10/255.255.255.0",
"192.168.1.11/255.255.255.0"
],
"ipv4_gw": "192.168.1.1",
"ipv4_nm": "255.255.255.0",
"ipv6_gw": "2001:db8::1",
"ipv6_64": "2001:db8:abcd::/64"
},
"hostname": "my-vps-server",
"traffic": {
"data": {
"included_bytes": 4294967296000,
"days_remaining": 30,
"last_updated": "1660023208",
"rx_bytes": "987654321",
"tx_bytes": "123456789",
"rx_packets": "123456",
"tx_packets": "654321"
},
"status": "success"
}
}
}{
"status": "error",
"message": "Invalid parameters provided."
}{
"status": "error",
"message": "Unauthorized request."
}{
"status": "error",
"message": "Access forbidden."
}{
"status": "error",
"message": "Internal server error."
}VPS Details
This endpoint retrieves comprehensive details about the specified KVM VPS,
including configuration, resource usage, network settings, and metadata.
The api_host parameter, obtained from the “Create AUTH-session” response,
is dynamically set in the URL.
Provide the signature, kvm_id, and valid_until parameters obtained
from the same response to fetch the information.
curl --request POST \
--url https://{api_host}/kvm/v2/get/all_details \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data signature=session_signature_98765 \
--data kvm_id=kvm_100200_300400 \
--data valid_until=1737476000import requests
url = "https://{api_host}/kvm/v2/get/all_details"
payload = {
"signature": "session_signature_98765",
"kvm_id": "kvm_100200_300400",
"valid_until": "1737476000"
}
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_98765',
kvm_id: 'kvm_100200_300400',
valid_until: '1737476000'
})
};
fetch('https://{api_host}/kvm/v2/get/all_details', 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/get/all_details",
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_98765&kvm_id=kvm_100200_300400&valid_until=1737476000",
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/get/all_details"
payload := strings.NewReader("signature=session_signature_98765&kvm_id=kvm_100200_300400&valid_until=1737476000")
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/get/all_details")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("signature=session_signature_98765&kvm_id=kvm_100200_300400&valid_until=1737476000")
.asString();require 'uri'
require 'net/http'
url = URI("https://{api_host}/kvm/v2/get/all_details")
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_98765&kvm_id=kvm_100200_300400&valid_until=1737476000"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"hw": {
"ram": "1024",
"disk": "8192",
"cpu_set_cores": "4",
"drive_boost": "204800"
},
"suspended": "n",
"ip": {
"ipv4": [
"192.168.1.10/255.255.255.0",
"192.168.1.11/255.255.255.0"
],
"ipv4_gw": "192.168.1.1",
"ipv4_nm": "255.255.255.0",
"ipv6_gw": "2001:db8::1",
"ipv6_64": "2001:db8:abcd::/64"
},
"hostname": "my-vps-server",
"traffic": {
"data": {
"included_bytes": 4294967296000,
"days_remaining": 30,
"last_updated": "1660023208",
"rx_bytes": "987654321",
"tx_bytes": "123456789",
"rx_packets": "123456",
"tx_packets": "654321"
},
"status": "success"
}
}
}{
"status": "error",
"message": "Invalid parameters provided."
}{
"status": "error",
"message": "Unauthorized request."
}{
"status": "error",
"message": "Access forbidden."
}{
"status": "error",
"message": "Internal server error."
}Body
Required parameters to fetch all details for a KVM VPS.
The session signature obtained from the "Create AUTH-session" call.
"session_signature_98765"
The unique identifier of the KVM VPS whose details are being retrieved.
This value is specific to your VPS.
"kvm_100200_300400"
The expiration timestamp for the session, obtained from the "Create AUTH-session" call.
Ensure that the session is valid and has not expired.
"1737476000"
Response
All VPS details retrieved successfully.
"success"
{
"hw": {
"ram": "1024",
"disk": "8192",
"cpu_set_cores": "4",
"drive_boost": "204800"
},
"suspended": "n",
"ip": {
"ipv4": [
"192.168.1.10/255.255.255.0",
"192.168.1.11/255.255.255.0"
],
"ipv4_gw": "192.168.1.1",
"ipv4_nm": "255.255.255.0",
"ipv6_gw": "2001:db8::1",
"ipv6_64": "2001:db8:abcd::/64"
},
"hostname": "my-vps-server",
"traffic": {
"data": {
"included_bytes": 4294967296000,
"days_remaining": 30,
"last_updated": "1660023208",
"rx_bytes": "987654321",
"tx_bytes": "123456789",
"rx_packets": "123456",
"tx_packets": "654321"
},
"status": "success"
}
}
Was this page helpful?