Get Virtualizor

Add ISO

Use Add ISO API to add new iso on VPS of your server.

HTTP Request

https://hostname:4083/index.php?act=addiso&svs=VPSID

Parameters

NameTypeValueDescriptionRequired
actGETaddisoThe action which will return data belonging to a particular pageYes
svsPOSTVPSIDProvide vpsid on which you want to add ISO.Yes
filenamePOSTtextProvide name of ISO file.Yes
iso_urlPOSTtextProvide url of ISO you want to addYes

Sample Code

PHP

<?php
    require_once('/usr/local/virtualizor/sdk/enduser.php');
    $key =  'your_api_key';
    $pass = 'your_api_pass';
    $ip = 'host_ip';

    $v = new Virtualizor_Enduser_API($ip, $key, $pass);
	
    $vid = 6710;//vps id
    $isourl = 'http://kali.org/dists/kali-rolling/main/installer-amd64/current/images/netboot/mini.iso';
    $isoname = 'mini.iso';
    $vps = $v->addiso($vid,$isourl,$isoname);
	
    print_r(json_encode($vps));
?>

Curl

curl -k -X POST -d "filename=mini.iso&iso_url=http://kali.org/dists/kali-rolling/main/installer-amd64/current/images/netboot/mini.iso&addiso=1" -L "https://hostname:4083/index.php?act=addiso&svs=6710&api=json&apikey=your_api_key&apipass=your_api_pass"

Output

{
   "uid":"600",
   "act":"addiso",
   "timezone":2,
   "timenow":"July 24, 2019, 2:27 pm",
   "vpsid":6710,
   "username":"a@a.com",
   "user_type":"2",
   "preferences":{
      "theme":"default",
      "language":"english",
      "timezone":2
   },
   "url":"index.php?",
   "rdns":{
      "pdnsid":null
   },
   "support_link":"http:\/\/softaculous.com",
   "enable_eu_iso":1,
   "billing_symbol":"$",
   "enable_registration":0,
   "inhouse_billing":"0",
   "title":"KVMTestServer",
   "done":{
      "msg":"The ISO has been successfully added",
      "goto":"act=euiso"
   },
   "addiso":null,
   "time_taken":"0.267"
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list