PARALLAX

cp_mgmt_interface

Manages interface objects on Checkpoint over Web Services API through native controller HTTPAPI with owned sessions

Collection: check_point.mgmt

Full Name: check_point.mgmt.cp_mgmt_interface

Controller module — runs on the local controller, not on remote hosts.

Synopsis

Manages interface objects on Checkpoint over Web Services API through native controller HTTPAPI with owned sessions

Parameters

NameTypeRequiredDefaultDescription
anti_spoofingboolEnable anti-spoofing.
anti_spoofing_settingsdictAnti Spoofing Settings.
auto_publish_sessionboolfalsePublish this owned session explicitly after the operation; default false.
cluster_memberslistNetwork interface settings for cluster members.
cluster_network_typestrCluster interface type.
colorstrColor of the object. Should be one of existing colors.
commentsstrComments string.
details_levelstrThe 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.
domains_to_processlistIndicates 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.
dynamic_ipboolEnable dynamic interface.
gateway_uidstryesGateway or cluster object uid that the interface belongs to.
ignore_errorsboolApply changes ignoring errors. You won’t be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignore_warningsboolApply changes ignoring warnings.
ipv4_addressstrIPv4 network address.
ipv4_mask_lengthintIPv4 mask length.
ipv4_network_maskstrIPv4 network mask.
ipv6_addressstrIPv6 address.
ipv6_mask_lengthintIPv6 mask length.
ipv6_network_maskstrIPv6 network mask.
monitored_by_clusterboolWhen Private is selected as the Cluster interface type, cluster can monitor or not monitor the interface.
namestryesNetwork interface name.
network_interface_typestrNetwork Interface Type.
security_zone_settingsdictSecurity Zone Settings.
statestrpresentDesired object presence.
tagslistCollection of tag identifiers.
topologystrTopology configuration.
topology_settingsdictTopology Settings.
versionstrManagement API version path; omitted uses the default API version.
wait_for_taskbooltrueWait for returned asynchronous task identifiers; default true.
wait_for_task_timeoutint30Polling deadline in minutes; default 30, negative values use 30, maximum 1440.

Example

yaml
- name: add-interface
  check_point.mgmt.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
  check_point.mgmt.cp_mgmt_interface:
    cluster_members:
      - ipv4_address: 4.4.4.1
        ipv4_mask_length: 22
        member_name: memberReal1
      - ipv4_address: 4.4.4.2
        ipv4_mask_length: 22
        member_name: memberReal2
    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
  check_point.mgmt.cp_mgmt_interface:
    state: absent
    name: eth0
    gateway_uid: 20ec49e8-8cd8-4ad4-b204-0de8ae4e0e17
Search
    ↑ ↓ move↵ openesc close