Add ISO


This article provides a guide for a VPS Reseller user to add a new ISO to a VPS via API.

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

HTTP Request

https://vm1.apivps.com:4083/index.php?act=addiso&svs=VPSID

Parameters

Name Type Value Description Required
act GET addiso The action which will return data belonging to a particular page Yes
svs POST VPSID Provide vpsid on which you want to add ISO. Yes
filename POST text Provide name of ISO file. Yes
iso_url POST text Provide url of ISO you want to add Yes

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 = 'https://cdimage.kali.org/kali-2023.2/kali-linux-2023.2a-installer-amd64.iso';
    $isoname = 'kali-linux-2023.2a-installer-amd64.iso';
    $vps = $v->addiso($vid,$isourl,$isoname);
	
    print_r(json_encode($vps));
?>

Curl

curl -k -X POST -d "filename=kali-linux-2023.2a-installer-amd64.iso&iso_url=https://cdimage.kali.org/kali-2023.2/kali-linux-2023.2a-installer-amd64.iso&addiso=1" -L "https://vm1.apivps.com: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 02, 2023, 12: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:\/\/radwebhosting.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"
}

Conclusion

You now know how to use Add ISO API as a VPS Reseller to add a new ISO to a VPS server.

  • install iso, iso, vps api, api
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Add SSH Key

This article provides a guide for a VPS Reseller user to add SSH key via API. Use Add SSH key...

Cloud Resources

This article provides a guide for a VPS Reseller user to get cloud resources available to the...

Delete VM

This article provides a guide for a VPS Reseller user to delete VM via API. Use Delete VM API to...

Create VM

This article provides a guide for a VPS Reseller user to create VM via API. Use Create VM API to...

List SSH Keys

This article provides a guide for a VPS Reseller user to list SSH keys via API. Use List SSH...