PARALLAX

cp_mgmt_run_script

Executes the script on a given list of targets through native controller HTTPAPI with owned sessions

Collection: check_point.mgmt

Full Name: check_point.mgmt.cp_mgmt_run_script

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

Synopsis

Executes the script on a given list of targets through native controller HTTPAPI with owned sessions

Parameters

NameTypeRequiredDefaultDescription
argsstrScript arguments.
auto_publish_sessionboolfalsePublish this owned session explicitly after the operation; default false.
commentsstrComments string.
scriptstrScript body.
script_namestrScript name.
targetslistOn what targets to execute this command. Targets may be identified by their name, or object unique identifier.
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: run-script
  check_point.mgmt.cp_mgmt_run_script:
    script: ls -l /
    script_name: 'Script Example: List files under / dir'
    targets:
      - corporate-gateway
Search
    ↑ ↓ move↵ openesc close