Get Virtualizor

Zone Info

Use Zone Info API to get all available zones created on VPS of your server.

HTTP Request

https://hostname:4083/index.php?act=managezone&domainid=DID

Parameters

NameTypeValueDescriptionRequired
actGETmanagezone The action which will return data belonging to a particular pageYes
domainid POSTintProvide domain ID of which you want the information.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);
	
    $did = 4; //domain id
    $vps = $v->managezone($did);
	
    print_r(json_encode($vps));
?>

Curl

curl -k -L "https://hostname:4083/index.php?act=managezone&domainid=DID&api=json&apikey=your_api_key&apipass=your_api_pass"

Output

{
   "uid":"1",
   "act":"managezone",
   "timezone":0,
   "timenow":"July 26, 2019, 12:26 pm",
   "vpsid":"7",
   "username":"abc@abc.com",
   "user_type":"2",
   "preferences":{
      "fname":"joe",
      "lname":"doe",
      "theme":"default",
      "language":"english",
      "timezone":0
   },
   "url":"index.php?",
   "rdns":{
      "pdnsid":"1"
   },
   "pdns":{
      "pdnsid":"1"
   },
   "title":"Virtualizor",
   "domain":{
      "4":{
         "id":"4",
         "name":"myzone",
         "master":null,
         "last_check":null,
         "type":"MASTER",
         "notified_serial":null,
         "account":null,
         "virtualizor_uid":"1"
      }
   },
   "domains":{
      "3":{
         "id":"3",
         "name":"testzone",
         "master":null,
         "last_check":null,
         "type":"MASTER",
         "notified_serial":null,
         "account":null,
         "virtualizor_uid":"1"
      },
      "4":{
         "id":"4",
         "name":"myzone",
         "master":null,
         "last_check":null,
         "type":"MASTER",
         "notified_serial":null,
         "account":null,
         "virtualizor_uid":"1"
      }
   },
   "records":{
      "16":{
         "id":"16",
         "domain_id":"4",
         "name":"test.myzone",
         "type":"A",
         "content":"xx.xx.xx.xx",
         "ttl":"6400",
         "prio":"1",
         "change_date":"1564034723",
         "disabled":"0",
         "ordername":null,
         "auth":"1"
      }
   },
   "manage_type":[
      "A",
      "CNAME",
      "MX",
      "NS",
      "AAAA",
      "TXT"
   ],
   "domainid":4,
   "time_taken":"0.074"
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list