Get Virtualizor

Manage Subnets

Use Manage Subnets API to manage IP V6 subnets on VPS of your server.

HTTP Request

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

Parameters

NameTypeValueDescriptionRequired
actGETmanagesubnetsThe action which will return data belonging to a particular pageYes
svsPOSTVPSIDProvide vpsid of which you want the information.Yes

Sample Code

PHP

<?php
    require_once('./virt/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
    $vps = $v->managesubnets($vid);
	
    print_r(json_encode($vps));
?>

Curl

curl -k -L "https://hostname:4083/index.php?act=managesubnets&svs=6710&do=add&api=json&apikey=your_api_key&apipass=your_api_pass"

Output

{
   "uid":"600",
   "act":"managesubnets",
   "timezone":2,
   "timenow":"July 26, 2019, 10:11 am",
   "vpsid":6710,
   "username":"a@a.com",
   "user_type":"2",
   "preferences":{
      "fname":"",
      "lname":"",
      "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",
   "ipr_ips":null,
   "ips":{
      "374945":{
         "ip":"2002:1:1:1:9585:52b4:05gf0:0001",
         "ipr_netmask":"343",
         "2002:1:1:1:9585:52b4:05gf0:0001":null
      }
   },
   "time_taken":"0.088"
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list