Softaculous


Topic : API IP Pools


Posted By: HOSTFLYTE on February 9, 2019, 9:31 pm
List IP Pools does not return the server id(s) the IP pool is assigned too.

In-fact there seems to be no way to figure out what IP Pools or IP Addresses are assigned to a server (node) unless it is assigned to a VM.

Posted By: chirag on February 14, 2019, 2:14 pm | Post: 1
Hi,

Sir you can get the server id from the key value "ipp_serid"

Are you not getting this key in response ?

Let us know.

-----------------------
Virtualizor - VPS Control Panel
Follow us on Facebook

Posted By: HOSTFLYTE on February 15, 2019, 1:21 am | Post: 2
all the ipp_serid fields return a 0.

Code

[1] => Array
                (
                    [ippid] => 1
                    [ipp_serid] => 0
                    [ippool_name] => xxx
                    [gateway] => xxx.xxx.xxx.xxx
                    [netmask] => xxx.xxx.xxx.xxx
                    [ns1] => 8.8.8.8
                    [ns2] => 8.8.4.4
                    [ipv6] => 0
                    [nat] => 0
                    [nat_name] =>
                    [routing] => 0
                    [internal] => 0
                    [bridge] =>
                    [mtu] => 0
                    [vlan] => 0
                    [totalip] => 125
                    [freeip] => 78
                )

            [2] => Array
                (
                    [ippid] => 2
                    [ipp_serid] => 0
                    [ippool_name] => xxx
                    [gateway] => xxx.xxx.xxx.xxx
                    [netmask] => xxx.xxx.xxx.xxx
                    [ns1] => 8.8.8.8
                    [ns2] => 8.8.4.4
                    [ipv6] => 0
                    [nat] => 0
                    [nat_name] =>
                    [routing] => 0
                    [internal] => 0
                    [bridge] =>
                    [mtu] => 0
                    [vlan] => 0
                    [totalip] => 125
                )

            [3] => Array
                (
                    [ippid] => 3
                    [ipp_serid] => 0
                    [ippool_name] => xxx
                    [gateway] => xxx.xxx.xxx.xxx
                    [netmask] => xxx.xxx.xxx.xxx
                    [ns1] => 8.8.8.8
                    [ns2] => 8.8.4.4
                    [ipv6] => 0
                    [nat] => 0
                    [nat_name] =>
                    [routing] => 0
                    [internal] => 0
                    [bridge] =>
                    [mtu] => 0
                    [vlan] => 0
                    [totalip] => 125
                    [freeip] => 2
                )

            [4] => Array
                (
                    [ippid] => 4
                    [ipp_serid] => 0
                    [ippool_name] => xxx
                    [gateway] => xxx.xxx.xxx.xxx
                    [netmask] => xxx.xxx.xxx.xxx
                    [ns1] => 8.8.8.8
                    [ns2] => 8.8.4.4
                    [ipv6] => 0
                    [nat] => 0
                    [nat_name] =>
                    [routing] => 0
                    [internal] => 0
                    [bridge] =>
                    [mtu] => 0
                    [vlan] => 0
                    [totalip] => 125
                    [total_locked_ips] => 1
                    [freeip] => 44
                )

Posted By: chirag on February 15, 2019, 7:50 am | Post: 3
Hi,

Sir I got your point.
And we have modified the code and in coming version we have added ipool_servers array in API output so that you can match the 'ippid' with the keys of 'ippool_servers' array.

Let us know for further information.

-----------------------
Virtualizor - VPS Control Panel
Follow us on Facebook

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.