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.
{ 'method' => 'access_control.list', 'parameters' => { } } |
Response
'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' } ], } }; |