PARALLAX

cp_mgmt_delete_rules_batch

Delete rules in batch from the same layer. Use this API to achieve optimum performance when removing more than one rule through native controller HTTPAPI with owned sessions

Collection: check_point.mgmt

Full Name: check_point.mgmt.cp_mgmt_delete_rules_batch

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

Synopsis

Delete rules in batch from the same layer. Use this API to achieve optimum performance when removing 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: delete-rules-batch
  check_point.mgmt.cp_mgmt_delete_rules_batch:
    objects:
      - layer: Network
        list:
          - rule_number: 1
          - rule_number: 2
        type: access-rule
      - layer: Standard
        list:
          - rule_number: 1
          - rule_number: 2
        type: nat-rule
      - layer: Default Layer
        list:
          - rule_number: 1
          - rule_number: 2
        type: https-rule
Search
    ↑ ↓ move↵ openesc close