cp_mgmt_add_rules_batch
Creates new rules in batch. Use this API to achieve optimum performance when adding more than one rule through native controller HTTPAPI with owned sessions
Collection: check_point.mgmt
Full Name: check_point.mgmt.cp_mgmt_add_rules_batch
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Creates new rules in batch. Use this API to achieve optimum performance when adding more than one rule through native controller HTTPAPI with owned sessions
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| auto_publish_session | bool | false | Publish the current session if changes have been performed after task completes. | |
| objects | list | Batch of rules separated by types. | ||
| version | str | Management API version path; omitted uses the default API version. | ||
| wait_for_task | bool | true | Wait for returned asynchronous task identifiers; default true. | |
| wait_for_task_timeout | int | 30 | Polling deadline in minutes; default 30, negative values use 30, maximum 1440. |
Example
yaml
- name: add-rules-batch
check_point.mgmt.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