Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Table of Contents
minLevel2

access_control.list

Description

Fetch a list of all the networking access rules on the gateway. The 0.0.0.0 and LOCAL rules are configured by default and cannot be deleted, though they can be unrestricted.

Arguments

None.

Example Requests & Responses

Example One

Request

Fetch a list of all the networking access rules on the gateway.

Code Block
{
    'method' => 'access_control.list',
    'parameters' => { }
}

Response

Code Block
          'access_control' => {
                                'rules' => [
 {
                                               'admin_web' => '1',
                                               'network' => '0.0.0.0',
                                               'object_type' => 'access_control',
                                               'name' => '0.0.0.0',
                                               'object_id' => '35',
                                               'object_name' => '0.0.0.0',
                                               'sip' => '1'
                                             },
                                             {
                                               'admin_web' => '1',
                                               'network' => 'LOCAL-eth1',
                                               'object_type' => 'access_control',
                                               'name' => 'LOCAL-eth1',
                                               'object_id' => '36',
                                               'object_name' => 'LOCAL-eth1',
                                               'sip' => '1'
                                             },
                                             {
                                               'admin_web' => '1',
                                               'network' => 'LOCAL-eth2',
                                               'object_type' => 'access_control',
                                               'name' => 'LOCAL-eth2',
                                               'object_id' => '57',
                                               'object_name' => 'LOCAL-eth2',
                                               'sip' => '1'
                                             },
                                             {
                                               'admin_web' => '1',
                                               'network' => 'LOCAL-eth1vlan1',
                                               'object_type' => 'access_control',
                                               'name' => 'LOCAL-eth1vlan1',
                                               'object_id' => '58',
                                               'object_name' => 'LOCAL-eth1vlan1',
                                               'sip' => '1'
                                             },
                                             {
                                               'admin_web' => '1',
                                               'network' => 'LOCAL-eth1vlan2',
                                               'object_type' => 'access_control',
                                               'name' => 'LOCAL-eth1vlan2',
                                               'object_id' => '59',
                                               'object_name' => 'LOCAL-eth1vlan2',
                                               'sip' => '1'
                                             },
                                             {
                                               'admin_web' => '1',
                                               'network' => 'LOCAL-eth2vlan1',
                                               'object_type' => 'access_control',
                                               'name' => 'LOCAL-eth2vlan1',
                                               'object_id' => '60',
                                               'object_name' => 'LOCAL-eth2vlan1',
                                               'sip' => '1'
                                             },
                                             {
                                               'admin_web' => '1',
                                               'network' => 'LOCAL-eth2vlan2',
                                               'object_type' => 'access_control',
                                               'name' => 'LOCAL-eth2vlan2',
                                               'object_id' => '61',
                                               'object_name' => 'LOCAL-eth2vlan2',
                                               'sip' => '1'
                                             }
                                           ],
                              }
        };