Table of Contents | ||
---|---|---|
|
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 |
---|---|---|
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.
Code Block |
---|
{ 'method' => 'access_control.delete', 'parameters' => { 'object_id' => '23' } } |
Response
Code Block |
---|
{ 'result' => 'success' } |
Or
Code Block |
---|
{ 'result' => 'error', 'error' => 'An Error String', 'error_key' => 'AN_ERROR_LANGUAGE_KEY', } |