Access Section#
This class is used to manage Access Section
- class AccessSection#
- add(layer, position, name=None, **kw)#
Create new object.
- Parameters
layer (str) – Layer that the rule belongs to identified by the name or UID.
position (Union[int, str, dict]) – Position in the rulebase. If an integer is provided, it will add the rule at the specific position. If a string is provided, it will add the rule at the position mentioned in the valid values (“top” or “bottom”). Otherwise, you can provide a dictionnary to explain more complex position (see the API documentation).
name (str, optional) – Section name.
- Keyword Arguments
**details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.
**ignore-warnings (bool, optional) – Apply changes ignoring warnings. Defaults to False
**ignore-errors (bool, optional) – Apply changes ignoring errors. You won’t be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored. Defaults to False
- Returns
The response from the server
- Return type
Box
Examples
>>> firewallManagement.access_control_nat.access_section.add( ... layer="Network", ... position=1, ... name="New Section 1",)
- delete(layer, uid=None, name=None, **kw)#
Delete existing object using object name or uid.
- Parameters
- Keyword Arguments
**details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.
- Returns
The response from the server
- Return type
Box
Examples
>>> firewallManagement.access_control_nat.access_section.delete( ... layer="Network", ... uid="aa5d88e9-a589-abba-1471-5d6988519a26")
- set(layer, uid=None, name=None, new_name=None, **kw)#
Edit existing object using object name or uid.
- Parameters
- Keyword Arguments
**details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.
**ignore-warnings (bool, optional) – Apply changes ignoring warnings. Defaults to False
**ignore-errors (bool, optional) – Apply changes ignoring errors. You won’t be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored. Defaults to False
- Returns
The response from the server
- Return type
Box
Examples
>>> firewallManagement.access_control_nat.access_section.set( ... layer="Network", ... uid="aa5d88e9-a589-abba-1471-5d6988519a26", ... new_name="New Section 1",)
- show(layer, uid=None, name=None, **kw)#
Retrieve existing object using object name or uid.
- Parameters
- Keyword Arguments
**details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.
- Returns
The response from the server
- Return type
Box
Examples
>>> firewallManagement.access_control_nat.access_section.show( ... uid="aa5d88e9-a589-abba-1471-5d6988519a26", ... layer="MyLayer")