check_point.mgmt.cp_mgmt_mobile_access_profile_rule 模块 – 通过 Web Services API 管理 Checkpoint 上的移动访问配置文件规则对象

注意

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

check_point.mgmt 6.0.0 中的新增功能

概要

  • 管理 Checkpoint 设备上的移动访问配置文件规则对象,包括创建、更新和删除对象。

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

参数

参数

注释

auto_publish_session

布尔值

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

选项

  • false ← (默认)

  • true

comments

字符串

注释字符串。

details_level

字符串

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

选项

  • "uid"

  • "standard"

  • "full"

enabled

布尔值

启用/禁用规则。

选项

  • false

  • true

ignore_errors

布尔值

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

选项

  • false

  • true

ignore_warnings

布尔值

应用更改时忽略警告。

选项

  • false

  • true

mobile_profile

字符串

用户组的配置文件配置 - 由名称或 UID 标识。

name

字符串 / 必需

对象名称。

position

字符串

在规则库中的位置。

state

字符串

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

选项

  • "present" ← (默认)

  • "absent"

tags

列表 / 元素=字符串

标签标识符的集合。

user_groups

列表 / 元素=字符串

将使用配置文件对象配置的用户组 - 由名称或 UID 标识。

version

字符串

Checkpoint 的版本。 如果未指定版本,则会使用最新版本。

wait_for_task

布尔值

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

选项

  • false

  • true ← (默认)

wait_for_task_timeout

整数

等待多少分钟直到抛出超时错误。

默认值: 30

示例

- name: add-mobile-access-profile-rule
  cp_mgmt_mobile_access_profile_rule:
    mobile_profile: Default_Profile
    name: Rule 1
    position: 1
    state: present
    user_groups:
    - my_group

- name: set-mobile-access-profile-rule
  cp_mgmt_mobile_access_profile_rule:
    mobile_profile: Default_Profile
    name: Rule 1
    position: 2
    user_groups:
    - my_group
    state: present

- name: delete-mobile-access-profile-rule
  cp_mgmt_mobile_access_profile_rule:
    name: New Mobile Profile Rule
    state: absent

返回值

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

描述

cp_mgmt_mobile_access_profile_rule

字典

创建或更新的检查点对象。

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

作者

  • Eden Brillant (@chkp-edenbr)