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
| 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: 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