check_point.mgmt.cp_mgmt_application_site 模块 – 通过 Web Services API 在 Check Point 上管理应用程序站点对象

注意

此模块是 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_application_site

check_point.mgmt 1.0.0 中的新功能

概要

  • 管理 Check Point 设备上的应用程序站点对象,包括创建、更新和删除对象。

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

参数

参数

注释

additional_categories

list / elements=string

用于配置或编辑在应用程序和 URL 过滤或威胁防御中使用的自定义应用程序/站点的其他类别。

application_signature

字符串

由 <a href=”https,//supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk103051”>签名工具</a> 生成的应用程序签名。

auto_publish_session

布尔值

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

选择

  • false ← (默认)

  • true

color

字符串

对象的颜色。应为现有颜色之一。

选择

  • "aquamarine"

  • "black"

  • "blue"

  • "crete blue"

  • "burlywood"

  • "cyan"

  • "dark green"

  • "khaki"

  • "orchid"

  • "dark orange"

  • "dark sea green"

  • "pink"

  • "turquoise"

  • "dark blue"

  • "firebrick"

  • "brown"

  • "forest green"

  • "gold"

  • "dark gold"

  • "gray"

  • "dark gray"

  • "light green"

  • "lemon chiffon"

  • "coral"

  • "sea green"

  • "sky blue"

  • "magenta"

  • "purple"

  • "slate blue"

  • "violet red"

  • "navy blue"

  • "olive"

  • "orange"

  • "red"

  • "sienna"

  • "yellow"

comments

字符串

注释字符串。

description

字符串

应用程序的描述。

details_level

字符串

响应中某些字段的详细程度可能有所不同,从仅显示对象的 UID 值到对象的完全详细表示形式。

选择

  • "uid"

  • "standard"

  • "full"

groups

list / elements=string

组标识符的集合。

ignore_errors

布尔值

应用更改时忽略错误。您将无法发布此类更改。如果忽略了 ignore-warnings 标志,也将忽略警告。

选择

  • false

  • true

ignore_warnings

布尔值

应用更改时忽略警告。

选择

  • false

  • true

name

string / required

对象名称。

primary_category

字符串

每个应用程序都根据其最显著的方面分配到一个主类别。

state

字符串

访问规则的状态(存在或不存在)。

选择

  • "present" ← (默认)

  • "absent"

tags

list / elements=string

标签标识符的集合。

url_list

list / elements=string

确定此特定应用程序的 URL。

urls_defined_as_regular_expression

布尔值

说明 URL 是否定义为正则表达式。

选择

  • false

  • true

version

字符串

Check Point 的版本。如果未提供版本,则采用最新版本。

wait_for_task

布尔值

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

选择

  • false

  • true ← (默认)

wait_for_task_timeout

整数

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

默认值: 30

示例

- name: add-application-site
  cp_mgmt_application_site:
    additional_categories:
    - Instant Chat
    - Supports Streaming
    - New Application Site Category 1
    description: My Application Site
    name: New Application Site 1
    primary_category: Social Networking
    state: present
    url_list:
    - www.cnet.com
    - www.stackoverflow.com
    urls_defined_as_regular_expression: false

- name: set-application-site
  cp_mgmt_application_site:
    description: My New Application Site
    name: New Application Site 1
    primary_category: Instant Chat
    state: present
    urls_defined_as_regular_expression: true

- name: delete-application-site
  cp_mgmt_application_site:
    name: New Application Site 2
    state: absent

返回值

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

描述

cp_mgmt_application_site

字典

创建或更新的 Check Point 对象。

返回值: 始终返回,删除对象时除外。

作者

  • Or Soffer (@chkp-orso)