access_control.save

Description

Save a new networking access control rule or save changes to an existing access control rule.

Arguments

name

required

value type

default value

name

required

value type

default value

name

yes

string

none

admin_web

no

boolean

0

sip

no

boolean

0

network

yes

string

IP address or range

Example Requests & Responses

Example One

Request

Save a new networking access control rule or save changes to an existing access control rule.

{     'method' => 'access_control.save',     'parameters' => {           'admin_web' => 1,           'network' => '1.1.1.1/12',           'name' => 'my network',           'sip' => 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