API License Info

From Virtualizor Wiki
Jump to: navigation, search
NOTE
This is OLD API Documentation. Click on the following link for New API Documentation
Admin API

Get License Info


Example Code:

<?php

    require_once('admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $output = $admin->$admin->license();
    
    print_r($output);

?>

Returns:

Array
(
    [title] => License Information
    [info] => Array
        (
            [path] => /usr/local/virtualizor
            [slave] => 0
            [masterkey] => 
            [masterip] => 
            [key] => uketenhrhpunty5lhgwkcuxxxxxxxxxx
            [pass] => yrsofc3tg3tre7bjpfppspxxxxxxxxxx
            [kernel] => kvm
            [lv] => vg
            [dbhost] => localhost
            [db] => virtualizor
            [dbuser] => root
            [dbpass] => qikhxxxxxx
            [sn] => Virtualizor
            [cookie_name] => SIMCookies0007
            [gzip] => 1
            [cpu_nm] => 1
            [overcommit] => 0
            [language] => english
            [soft_email] => test@test.com
            [theme_folder] => default
            [timezone] => 0
            [update] => 1
            [email_update] => 1
            [email_update_client] => 0
            [cron_time] => 51 8 * * *
            [logo_url] => 
            [mail] => 1
            [mail_server] => 
            [mail_port] => 
            [mail_user] => 
            [mail_pass] => 
            [off] => 0
            [off_subject] => 
            [off_message] => 
            [admin_logs] => 2
            [vps_logs] => 2
            [login_logs] => 2
            [system_logs] => 7
            [status_logs] => 7
            [bandwidth_logs] => 0
            [sess_len] => 3600
            [copyright] => 
            [interface] => 
            [xen_pvbridge] => 
            [xen_hvmbridge] => 
            [xen_dom0mem] => 0
            [ipadd] => 
            [netmask] => 
            [gateway] => 
            [ip6add] => 
            [gateway6] => 
            [login_attempts] => 5
            [login_ban_time] => 15
            [alert_load_limit] => 0
            [alert_disk_limit] => 10
            [vswap] => 0
            [noc_username] => 
            [noc_password] => 
            [disable_webuzo] => 
            [disabled_scripts] => 
            [disable_icons_monitor] => 1
            [disable_icons_cp] => 0
            [enable_tuntap_cp] => 0
            [disable_email] => 
            [node_bandwidth] => 0
            [dbbackup_email] => 1
            [change_ssh_port] => 22
            [max_ssh_login] => 10
            [vnc_ip] => 
            [ping_ip] => 4.2.2.2
            [distro] => 
            [dhcp_interface] => 
            [support] => mailto:test@test.com
            [hf_loaded] => 0
            [charset] => UTF-8
            [showntimetaken] => 1
            [version] => 2.4.5
            [license] => xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
            [port] => 4082
            [vpsid] => 0
            [index] => index.php?
            [server] => 0
            [queries] => 4
            [docs] => http://www.virtualizor.com/wiki/
            [apiurl] => http://api.virtualizor.com/
            [openvzos] => /vz/template/cache
            [xenos] => /var/virtualizor/xen
            [kvmos] => /var/virtualizor/kvm
            [xcpos] => /var/virtualizor/xcp
            [isos] => /var/virtualizor/iso
            [virtualboxos] => /var/virtualizor/virtualbox
            [mainfiles] => /usr/local/virtualizor/main
            [adminfiles] => /usr/local/virtualizor/admin
            [themes] => /usr/local/virtualizor/enduser/themes
            [runtime_theme] => api
            [_disabled_scripts] => Array
                (
                )

            [com] => Array
                (
                    [vgdisplay] => /sbin/vgdisplay
                    [lvdisplay] => /sbin/lvdisplay
                    [lvscan] => /sbin/lvscan
                    [lvcreate] => /sbin/lvcreate
                    [lvremove] => /sbin/lvremove
                    [resizefs] => /sbin/resize2fs
                    [php] => /usr/local/emps/bin/php
                )

            [conn] => 0
            [output_queries] => 0
            [HTTP_HOST] => xxx.xxx.xxx.xxx
            [lictype] => 0
            [lictype_txt] => Free
            [active] => 1
            [active_txt] => Active
            [licnumvs] => 0
            [primary_ip] => xxx.xxx.xxx.xxx
            [licexpires] => 20141231
            [licexpires_txt] => 1/12/2013 GMT
            [pgtimezone] => 0
            [apicall] => luxxxxxx
            [apidata] => Array
                (
                )

            [SERVER_ADDR] => xxx.xxx.xxx.xxx
        )

    [timenow] => 1201115116
    [time_taken] => 0.015
)