NAT Section#
This class is used to manage NAT Section
- class NATSection#
- add(package, position, name=None, **kw)#
Create new object.
- Parameters
package (str) – Name of the package.
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.nat_section.add( ... package="standard", ... position=1, ... name="New NAT Section 1",)
- delete(package, 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.nat_section.delete( ... package="standard", ... uid="bb89a652-369a-2884-dd59-f69ea241567cd")
- set(package, 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.nat_section.set( ... package="standard", ... uid="bb89a652-369a-2884-dd59-f69ea241567cd", ... new_name="New NAT Section 1",)
- show(package, 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.nat_section.show( ... uid="bb89a652-369a-2884-dd59-f69ea241567cd", ... package="standard")