check_point.mgmt.cp_mgmt_export_smart_task 模块 – 将 SmartTask 导出到文件。

注意

此模块是 check_point.mgmt 集合(版本 6.2.1)的一部分。

如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install check_point.mgmt

要在 playbook 中使用它,请指定:check_point.mgmt.cp_mgmt_export_smart_task

check_point.mgmt 5.0.0 中的新增功能

概要

  • 将 SmartTask 导出到文件。 <br>此命令仅在安全管理环境或登录到本地域的多域环境中可用。

  • 所有操作均通过 Web Services API 执行。

参数

参数

注释

auto_publish_session

布尔值

如果在任务完成后执行了更改,则发布当前会话。

选择

  • false ← (默认)

  • true

file_path

字符串

要导出的 SmartTask 文件的路径。 <br>应该是完整的文件路径(例如,“/home/admin/exported-smart-task.txt”)。<br>如果未插入路径,则默认值为“/var/log/<task_name>.txt”。

name

字符串 / 必需

要导出的任务的名称。

version

字符串

检查点的版本。如果未提供版本,则采用最新版本。

wait_for_task

布尔值

等待任务结束。例如发布任务。

选择

  • false

  • true ← (默认)

wait_for_task_timeout

整数

等待多长时间(分钟)直到抛出超时错误。

默认值: 30

示例

- name: export-smart-task
  cp_mgmt_export_smart_task:
    name: Validate Session Name Before Publish

返回值

常见返回值在此处记录 此处,以下是此模块独有的字段

描述

cp_mgmt_export_smart_task

字典

检查点 export-smart-task 的输出。

返回:始终。

作者

  • Eden Brillant (@chkp-edenbr)