ip_configuration.save

Description

Save networking settings.

Arguments

name

required

value type

default value

name

required

value type

default value

reload_config

no

boolean

0

gateway_address

no

ip address

none

hostname

no

string

model number and last three octets of MAC address

use_default_ip

no

boolean

1

option_66

no

boolean

0

config_uri

no

URI to config

none

net_mask

no

ip address

none

dns_addresses

no

array of ip addresses

none

ip_address

no

ip address

192.168.69.1

use_dhcp

no

boolean

0

Example Requests & Responses

Example One

Request

Save networking settings.

{     'method' => 'ip_configuration.save',     'parameters' => {           'reload_config' => 0,           'gateway_address' => '192.168.50.254',           'hostname' => 'G200-00-00-04',           'use_default_ip' => 1,           'option_66' => 0,           'config_uri' => '',           'dns_addresses' => [                                                     '192.168.51.1',                                                     '192.168.51.2'                              ],           'net_mask' => '255.255.248.0',           'ip_address' => '192.168.50.83',           'use_dhcp' => 1         }

Response

{           'result' => 'success'  }

Or

{           'result' => 'error',           'error' => 'An Error String',           'error_key' => 'AN_ERROR_LANGUAGE_KEY',  }

Return to Documentation Home I Return to Sangoma Support