PARALLAX

cp_mgmt_package

Manages package objects on Check Point over Web Services API through native controller HTTPAPI with owned sessions

Collection: check_point.mgmt

Full Name: check_point.mgmt.cp_mgmt_package

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

Synopsis

Manages package objects on Check Point over Web Services API through native controller HTTPAPI with owned sessions

Parameters

NameTypeRequiredDefaultDescription
accessboolTrue - enables, False - disables access & NAT policies, empty - nothing is changed.
access_layersdictAccess policy layers.
auto_publish_sessionboolfalsePublish this owned session explicitly after the operation; default false.
colorstrColor of the object. Should be one of existing colors.
commentsstrComments string.
desktop_securityboolTrue - enables, False - disables Desktop security policy, empty - nothing is changed.
details_levelstrThe level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.
ignore_errorsboolApply changes ignoring errors. You won’t be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
ignore_warningsboolApply changes ignoring warnings.
installation_targetslistWhich Gateways identified by the name or UID to install the policy on.
namestryesObject name.
qosboolTrue - enables, False - disables QoS policy, empty - nothing is changed.
qos_policy_typestrQoS policy type.
statestrpresentDesired object presence.
tagslistCollection of tag identifiers.
threat_layersdictThreat policy layers.
threat_preventionboolTrue - enables, False - disables Threat policy, empty - nothing is changed.
versionstrManagement API version path; omitted uses the default API version.
vpn_traditional_modeboolTrue - enables, False - disables VPN traditional mode, empty - nothing is changed.
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-package
  check_point.mgmt.cp_mgmt_package:
    access: true
    color: dark green
    comments: My Comments
    name: New_Standard_Package_1
    state: present
    threat_prevention: false

- name: set-package
  check_point.mgmt.cp_mgmt_package:
    access_layers:
      add:
        - name: New Access Layer 1
          position: 1
    name: Standard
    state: present
    threat_layers:
      add:
        - name: New Layer 1
          position: 2

- name: delete-package
  check_point.mgmt.cp_mgmt_package:
    name: New Standard Package 1
    state: absent
Search
    ↑ ↓ move↵ openesc close