Note
This module is part of the check_point.mgmt collection (version 6.4.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_add_rules_batch.
New in check_point.mgmt 3.0.0
Parameter | Comments |
|---|---|
auto_publish_session boolean | Publish the current session if changes have been performed after task completes. Choices:
|
objects list / elements=dictionary | Batch of rules separated by types. |
|
first_position string |
First rule position. |
|
layer string |
Layer name or uid. |
|
list list / elements=dictionary |
List of rules from the same type to be created on the same layer. <br>Use the “add” API reference documentation for a single rule command to find the expected fields for the request. <br>For example, to add access-rules, use the “add-access-rule” command found in the API reference documentation (under Access Control & NAT). <br>Note, “set-if-exists”, “ignore-errors”, “ignore-warnings” and “details-level” options are not supported when adding a batch of rules. |
|
type string |
Type of rules to be created. <br>Only types from above are supported. |
version string | Version of checkpoint. If not given one, the latest version taken. |
wait_for_task boolean | Wait for the task to end. Such as publish task. Choices:
|
wait_for_task_timeout integer | How many minutes to wait until throwing a timeout error. Default: |
- name: add-rules-batch
cp_mgmt_add_rules_batch:
objects:
- first_position: top
layer: Network
list:
- action: accept
name: access rule 1
- action: accept
name: access rule 2
type: access-rule
- first_position: top
layer: Standard
list:
- name: nat rule 1
- name: nat rule 2
type: nat-rule
- first_position: top
layer: Default Layer
list:
- name: https rule 1
- name: https rule 2
type: https-rule
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
cp_mgmt_add_rules_batch dictionary | The checkpoint add-rules-batch output. Returned: always. |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_add_rules_batch_module.html