cp_mgmt_export_smart_task
Export SmartTask to a file through native controller HTTPAPI with owned sessions
Collection: check_point.mgmt
Full Name: check_point.mgmt.cp_mgmt_export_smart_task
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Export SmartTask to a file through native controller HTTPAPI with owned sessions
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| auto_publish_session | bool | false | Publish this owned session explicitly after the operation; default false. | |
| file_path | str | Path to the SmartTask file to be exported. Should be the full file path (example, “/home/admin/exported-smart-task.txt)”. If no path was inserted the default will be, “/var/log/<task_name>.txt”. | ||
| name | str | yes | Name of task to be exported. | |
| 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: export-smart-task
check_point.mgmt.cp_mgmt_export_smart_task:
name: Validate Session Name Before Publish