access_control.delete

Description

Delete one networking access control rule. Note: the catchall rule ("0.0.0.0") and the local rule ("LOCAL") cannot be deleted.

Arguments

name

value type

required

name

value type

required

object_name

the name of the rule

yes, if no object_id specified

object_id

integer representing the auto-increment field from the database

yes, if no object_name specified

Example Requests & Responses

Example One

Request

Delete one networking access control rule.

{     'method' => 'access_control.delete',     'parameters' => {         'object_id' => '23'     } }

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