check_point.mgmt.cp_mgmt_checkpoint_host module – Manages checkpoint-host objects on Checkpoint over Web Services API
Note
This module is part of the check_point.mgmt collection (version 6.5.0).
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_checkpoint_host.
New in check_point.mgmt 5.0.0
Synopsis
- Manages checkpoint-host objects on Checkpoint devices including creating, updating and removing objects. 
- All operations are performed over Web Services API. 
- Available from R80.40 JHF management version. 
Parameters
| Parameter | Comments | 
|---|---|
| Publish the current session if changes have been performed after task completes. Choices: 
 | |
| Check Point host platform version. | |
| 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: 
 | |
| Collection of group identifiers. | |
| Hardware name. | |
| 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: 
 | |
| Check Point host interfaces. | |
| 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 network mask length. If both masks are required use mask-length4 and mask-length6 fields explicitly. Instead of IPv4 mask length it is possible to specify IPv4 mask itself in subnet-mask field. | |
| IPv4 network mask length. | |
| IPv6 network mask length. | |
| Interface name. | |
| IPv4 or IPv6 network address. If both addresses are required use subnet4 and subnet6 fields explicitly. | |
| IPv4 network address. | |
| IPv6 network address. | |
| IPv4 network mask. | |
| IPv4 or IPv6 address. If both addresses are required use ipv4-address and ipv6-address fields explicitly. | |
| IPv4 address. | |
| IPv6 address. | |
| Logs settings. | |
| Enable accept syslog messages. Choices: 
 | |
| Enable alert when free disk space is below threshold. Choices: 
 | |
| Alert when free disk space below threshold. | |
| Alert when free disk space below type. Choices: 
 | |
| Enable before delete keep logs from the last days. Choices: 
 | |
| Before delete keep logs from the last days threshold. | |
| Enable Before delete run script. Choices: 
 | |
| Before delete run script command. | |
| Enable delete index files older than days. Choices: 
 | |
| Delete index files older than days threshold. | |
| Enable delete when free disk space below. Choices: 
 | |
| Delete when free disk space below threshold. | |
| Enable detect new Citrix ICA application names. Choices: 
 | |
| Distribute logs between all active servers. Available from R81.20 management version. Choices: 
 | |
| Enable log indexing. Choices: 
 | |
| Enable forward logs to log server. Choices: 
 | |
| Forward logs to log server name. | |
| Forward logs to log server schedule name. | |
| Free disk space metrics. Choices: 
 | |
| Enable rotate log by file size. Choices: 
 | |
| Log file size threshold. | |
| Enable rotate log on schedule. Choices: 
 | |
| Rotate log schedule name. | |
| Enable SmartEvent intro correlation unit. Choices: 
 | |
| Enable stop logging when free disk space below. Choices: 
 | |
| Stop logging when free disk space below threshold. | |
| Enable turn on QoS Logging. Choices: 
 | |
| Update account log in every amount of seconds. | |
| Management blades. | |
| Compliance blade. Can be set when ‘network-policy-management’ was selected to be True. Choices: 
 | |
| Enable Endpoint Policy. </br>To complete Endpoint Security Management configuration, perform Install Database on your Endpoint Management Server. </br>Field is not supported on Multi Domain Server environment. Choices: 
 | |
| Enable Logging & Status. Choices: 
 | |
| Enable Network Policy Management. Choices: 
 | |
| Enable SmartEvent Correlation Unit. Choices: 
 | |
| Enable SmartEvent server. </br>When activating SmartEvent server, blades ‘logging-and-status’ and ‘smart-event-correlation’ should be set to True. </br>To complete SmartEvent configuration, perform Install Database or Install Policy on your Security Management servers and Log servers. </br>Activating SmartEvent Server is not recommended in Management High Availability environment. For more information refer to sk25164. Choices: 
 | |
| Enable User Directory. Can be set when ‘network-policy-management’ was selected to be True. Choices: 
 | |
| Object name. | |
| NAT settings. | |
| Whether to add automatic address translation rules. Choices: 
 | |
| Hide behind method. This parameter is forbidden in case “method” parameter is “static”. Choices: 
 | |
| Which gateway should apply the NAT translation. | |
| IPv4 or IPv6 address. If both addresses are required use ipv4-address and ipv6-address fields explicitly. This parameter is not required in case “method” parameter is “hide” and “hide-behind” parameter is “gateway”. | |
| IPv4 address. | |
| IPv6 address. | |
| NAT translation method. Choices: 
 | |
| Secure internal connection one time password. | |
| Operating system name. | |
| Enable save logs locally. Choices: 
 | |
| Collection of Server(s) to send alerts to identified by the name or UID. | |
| Collection of Backup server(s) to send logs to identified by the name or UID. | |
| Collection of Server(s) to send logs to identified by the name or UID. | |
| State of the access rule (present or absent). Choices: 
 | |
| Collection of tag identifiers. | |
| 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-checkpoint-host
  cp_mgmt_checkpoint_host:
    ipv4_address: 5.5.5.5
    management_blades:
      logging_and_status: true
      network_policy_management: true
    name: secondarylogserver
    state: present
- name: set-checkpoint-host
  cp_mgmt_checkpoint_host:
    hardware: Smart-1
    management_blades:
      compliance: true
      network_policy_management: true
      user_directory: true
    name: secondarylogserver
    os: Linux
    state: present
- name: delete-checkpoint-host
  cp_mgmt_checkpoint_host:
    name: secondarylogserver
    state: absent
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. | 
