PARALLAX

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

NameTypeRequiredDefaultDescription
auto_publish_sessionboolfalsePublish the current session if changes have been performed after task completes.
objectslistBatch of rules separated by types.
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-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
Search
    ↑ ↓ move↵ openesc close