check_point.mgmt.cp_mgmt_administrator 模块 – 通过 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_administrator
。
check_point.mgmt 1.0.0 中的新增功能
概要
管理 Checkpoint 设备上的管理员对象,包括创建、更新和删除对象。
所有操作都通过 Web Services API 执行。
参数
参数 |
注释 |
---|---|
身份验证方法。 选项
|
|
如果在任务完成后执行了更改,则发布当前会话。 选项
|
|
对象的颜色。应为现有颜色之一。 选项
|
|
注释字符串。 |
|
响应中某些字段的详细程度可能有所不同,从仅显示对象的 UID 值到对象的完整详细表示。 选项
|
|
管理员电子邮件。 |
|
格式,YYYY-MM-DD,YYYY-mm-ddThh,mm,ss。 |
|
应用更改时忽略错误。您将无法发布此类更改。如果省略了 ignore-warnings 标志,则也会忽略警告。 选项
|
|
应用更改时忽略警告。 选项
|
|
管理员多域配置文件。 |
|
如果管理员必须在下次登录时更改密码,则为 True。 选项
|
|
对象名称。 |
|
管理员密码。 |
|
管理员密码哈希。 |
|
权限配置文件 |
|
管理员权限配置文件。当 multi-domain-profile 设置为“Multi-Domain Super User”或“Domain Super User”时,不应提供权限配置文件。仅在 MDS 中使用。 |
|
域。 |
|
权限配置文件。 |
|
管理员电话号码。 |
|
通过名称或 UID 标识的 RADIUS 服务器对象。当“authentication-method”选择为“RADIUS”时必须设置。 |
|
访问规则的状态(存在或不存在)。 选项
|
|
通过名称或 UID 标识的 TACACS 服务器对象。当“authentication-method”选择为“TACACS”时必须设置。 |
|
标记标识符的集合。 |
|
Checkpoint 的版本。如果没有给定版本,则采用最新版本。 |
|
等待任务结束。例如发布任务。 选项
|
|
等待多少分钟后抛出超时错误。 默认值: |
示例
- name: add-administrator
cp_mgmt_administrator:
authentication_method: check point password
email: [email protected]
must_change_password: false
name: admin
password: secret
permissions_profile: read write all
phone_number: 1800-800-800
state: present
- name: set-administrator
cp_mgmt_administrator:
name: admin
password: new secret
permissions_profile: read only profile
state: present
- name: delete-administrator
cp_mgmt_administrator:
name: admin
state: absent
- name: add-administrator-in-MDS
cp_mgmt_administrator:
authentication_method: check point password
email: [email protected]
must_change_password: false
name: admin
password: secret
permissions_profile_list:
profile: read write all
domain: dom1
phone_number: 1800-800-800
state: present
返回值
常用的返回值已记录在这里,以下是此模块特有的字段
键 |
描述 |
---|---|
创建或更新的检查点对象。 返回值: 始终返回,除非删除对象。 |