check_point.mgmt.cp_mgmt_passcode_profile 模块 – 通过 Web 服务 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_passcode_profile

check_point.mgmt 6.0.0 中的新增功能

概要

  • 管理 Checkpoint 设备上的密码配置文件对象,包括创建、更新和删除对象。

  • 所有操作都是通过 Web 服务 API 执行的。

参数

参数

注释

allow_simple_passcode

布尔值

密码长度为 4,仅允许数字值。

选项

  • false

  • true

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

字符串

注释字符串。

details_level

字符串

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

选项

  • "uid"

  • "standard"

  • "full"

domains_to_process

列表 / 元素=字符串

指示在哪些域上处理命令。它不能与 details-level full 一起使用,必须仅从系统域运行并且 ignore-warnings 为 true。有效值为 CURRENT_DOMAIN、ALL_DOMAINS_ON_THIS_SERVER。

enable_inactivity_time_lock

布尔值

如果应用程序处于非活动状态,则锁定设备。

选项

  • false

  • true

enable_passcode_failed_attempts

布尔值

密码验证失败几次后退出。

选项

  • false

  • true

enable_passcode_history

布尔值

检查密码历史记录以进行修复。

选项

  • false

  • true

force_passcode_expiration

布尔值

启用/禁用密码的过期日期。

选项

  • false

  • true

ignore_errors

布尔值

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

选项

  • false

  • true

ignore_warnings

布尔值

忽略警告应用更改。

选项

  • false

  • true

max_inactivity_time_lock

整数

必须重新输入密码之前的用户无输入时间(以分钟为单位)。

max_passcode_failed_attempts

整数

允许的失败尝试次数。

min_passcode_complex_characters

整数

复杂字符的最小数量(如果启用了“require-alphanumeric-passcode”)。复杂字符的数量不能大于密码长度的数量。

min_passcode_length

整数

最小密码长度 - 如果禁用“allow-simple-passcode”则相关。

name

字符串 / 必填

对象名称。

passcode_expiration_period

整数

密码过期后的天数。

passcode_history

整数

将保留在历史记录中的密码数量。

require_alphanumeric_passcode

布尔值

要求密码中包含字母数字字符 - 如果禁用“allow-simple-passcode”则相关。

选项

  • false

  • true

state

字符串

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

选项

  • "present" ← (默认)

  • "absent"

tags

列表 / 元素=字符串

标签标识符集合。

version

字符串

checkpoint 的版本。如果未指定,则采用最新版本。

wait_for_task

布尔值

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

选项

  • false

  • true ← (默认)

wait_for_task_timeout

整数

在抛出超时错误之前要等待多少分钟。

默认值: 30

示例

- name: add-passcode-profile
  cp_mgmt_passcode_profile:
    name: New App Passcode Policy
    state: present

- name: set-passcode-profile
  cp_mgmt_passcode_profile:
    allow_simple_passcode: 'true'
    max_inactivity_time_lock: '30'
    name: New App Passcode Policy
    require_alphanumeric_passcode: 'false'
    state: present

- name: delete-passcode-profile
  cp_mgmt_passcode_profile:
    name: My App Passcode Policy
    state: absent

返回值

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

描述

cp_mgmt_passcode_profile

字典

创建或更新的 Checkpoint 对象。

返回:始终返回,除非删除对象。

作者

  • Eden Brillant (@chkp-edenbr)