check_point.mgmt.cp_mgmt_interface module – Manages interface objects on Checkpoint over Web Services API
Note
This module is part of the check_point.mgmt collection (version 6.2.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install check_point.mgmt
.
To use it in a playbook, specify: check_point.mgmt.cp_mgmt_interface
.
New in check_point.mgmt 6.2.0
Synopsis
Manages interface objects on Checkpoint devices including creating, updating and removing objects.
Available for R82 and above machines.
All operations are performed over Web Services API.
Parameters
Parameter |
Comments |
---|---|
Enable anti-spoofing. Choices:
|
|
Anti Spoofing Settings. |
|
If packets will be rejected (the Prevent option) or whether the packets will be monitored (the Detect option). Choices:
|
|
Don’t check packets from excluded network. Choices:
|
|
Excluded network name. |
|
Excluded network UID. |
|
Spoof tracking. Choices:
|
|
Publish the current session if changes have been performed after task completes. Choices:
|
|
Network interface settings for cluster members. |
|
Color of the object. Should be one of existing colors. Choices:
|
|
Comments string. |
|
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. Choices:
|
|
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. Choices:
|
|
Apply changes ignoring warnings. Choices:
|
|
IPv4 or IPv6 address. If both addresses are required use ipv4-address and ipv6-address fields explicitly. |
|
IPv4 address. |
|
IPv4 network mask length. |
|
IPv4 network address. |
|
IPv6 address. |
|
IPv6 network mask length. |
|
IPv6 network address. |
|
IPv4 or IPv6 network mask length. |
|
Cluster member object name. |
|
Cluster member network interface name. |
|
IPv4 or IPv6 network mask. If both masks are required use ipv4-network-mask and ipv6-network-mask fields explicitly. Instead of providing mask itself it is possible to specify IPv4 or IPv6 mask length in mask-length field. If both masks length are required use ipv4-mask-length and ipv6-mask-length fields explicitly. |
|
Collection of tag identifiers. |
|
Cluster interface type. Choices:
|
|
Color of the object. Should be one of existing colors. Choices:
|
|
Comments string. |
|
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. Choices:
|
|
Indicates which domains to process the commands on. It cannot be used with the details-level full, must be run from the System Domain only and with ignore-warnings true. Valid values are, CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER. |
|
Enable dynamic interface. Choices:
|
|
Gateway or cluster object uid that the interface belongs to. |
|
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. Choices:
|
|
Apply changes ignoring warnings. Choices:
|
|
IPv4 network address. |
|
IPv4 mask length. |
|
IPv4 network mask. |
|
IPv6 address. |
|
IPv6 mask length. |
|
IPv6 network mask. |
|
When Private is selected as the Cluster interface type, cluster can monitor or not monitor the interface. Choices:
|
|
Network interface name. |
|
Network Interface Type. Choices:
|
|
Security Zone Settings. |
|
Security Zone is calculated according to where the interface leads to. Choices:
|
|
Security Zone specified manually. |
|
State of the access rule (present or absent). Choices:
|
|
Collection of tag identifiers. |
|
Topology configuration. Choices:
|
|
Topology Settings. |
|
Whether this interface leads to demilitarized zone (perimeter network). Choices:
|
|
Network settings behind this interface. Choices:
|
|
Network behind this interface. |
|
N/A |
|
Version of checkpoint. If not given one, the latest version taken. |
|
Wait for the task to end. Such as publish task. Choices:
|
|
How many minutes to wait until throwing a timeout error. Default: |
Examples
- name: add-interface
cp_mgmt_interface:
anti_spoofing: true
anti_spoofing_settings:
action: detect
exclude_packets: false
spoof_tracking: log
cluster_members:
- ipv4_address: 2.2.2.1
ipv4_mask_length: 24
ipv4_network_mask: 255.255.255.0
member_name: member1
name: eth4
- ipv4_address: 2.2.2.2
ipv4_mask_length: 24
ipv4_network_mask: 255.255.255.0
member_name: member2
name: eth4
cluster_network_type: cluster
gateway_uid: 20ec49e8-8cd8-4ad4-b204-0de8ae4e0e17
ignore_warnings: false
ipv4_address: 1.1.1.111
ipv4_mask_length: 24
name: eth0
security_zone_settings:
auto_calculated: false
specific_zone: InternalZone
state: present
topology: internal
topology_settings:
interface_leads_to_dmz: false
ip_address_behind_this_interface: network defined by routing
- name: set-interface
cp_mgmt_interface:
cluster_members:
- ipv4_address: 4.4.4.1
ipv4_mask_length: 22
member_name: memberReal1
uid: db4f8a63-5a94-46d8-b9e0-a63870bded3d
- ipv4_address: 4.4.4.2
ipv4_mask_length: 22
member_name: memberReal2
uid: baca571e-8ada-4be9-8966-145388f8e238
cluster_network_type: cluster + sync
ipv4_address: 4.4.4.111
ipv4_mask_length: 22
state: present
topology: internal
topology_settings:
ip_address_behind_this_interface: network defined by routing
name: eth0
gateway_uid: 20ec49e8-8cd8-4ad4-b204-0de8ae4e0e17
- name: delete-interface
cp_mgmt_interface:
state: absent
name: eth0
gateway_uid: 20ec49e8-8cd8-4ad4-b204-0de8ae4e0e17
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The checkpoint object created or updated. Returned: always, except when deleting the object. |