ip_configuration.list

Description

Fetch a list of all the network settings on the gateway.

Arguments

None.

Example Requests & Responses

Example One

Request

Fetch a list of all the network settings on the gateway. The 'cur' object in this object represents information gleaned directly from the system and will contain the actual settings in use at the time. Other settings represent information saved in the database and may be out of date or not in use, for instance, if DHCP has been enabled since the time when such information was saved.

{     'method' => 'ip_configuration.list',     'parameters' => { } }

Response

'ip_configuration' => {           'gateway_address' => '192.168.50.254',           'reload_config' => '0',           'use_default_ip' => '1',           'option_66' => '0',           'cur' => {                      'dns_addresses' => [                                           '192.168.51.1',                                           '192.168.51.2'                                         ],                      'hostname' => 'G200-00-00-04',                      'devices' => [                                     {                                       'mac_address' => 'B2:43:4A:00:00:04',                                       'gateway_address' => '10.24.23.254',                                       'status_ok' => 1,                                       'net_mask' => '255.255.248.0',                                       'name' => 'eth1',                                       'ip_address' => '10.24.18.34'                                     }                                   ]                    },           'dns_addresses' => [                                '10.24.55.4'                              ],           'net_mask' => '255.255.255.0',           'ip_address' => '192.168.50.83',           'use_dhcp' => '1'         }

Return to Documentation Home I Return to Sangoma Support