check_point.mgmt.cp_mgmt_service_compound_tcp 模块 – 通过 Web 服务 API 管理 Checkpoint 上的 service-compound-tcp 对象
注意
此模块是 check_point.mgmt 集合(版本 6.2.1)的一部分。
如果您使用的是 ansible 包,您可能已经安装了此集合。 它不包含在 ansible-core 中。 要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install check_point.mgmt。
要在剧本中使用它,请指定: check_point.mgmt.cp_mgmt_service_compound_tcp。
check_point.mgmt 5.0.0 中的新增功能
概要
- 管理 Checkpoint 设备上的 service-compound-tcp 对象,包括创建、更新和删除对象。 
- 所有操作均通过 Web 服务 API 执行。 
参数
| 参数 | 注释 | 
|---|---|
| 如果任务完成后执行了更改,则发布当前会话。 选择 
 | |
| 对象的颜色。 应为现有颜色之一。 选择 
 | |
| 注释字符串。 | |
| 复合服务类型。 选择 
 | |
| 响应中某些字段的详细程度可能会有所不同,从仅显示对象的 UID 值到对象的完整详细表示。 选择 
 | |
| 组标识符的集合。 | |
| 应用更改时忽略错误。 您将无法发布此类更改。 如果省略了 ignore-warnings 标志,则也会忽略警告。 选择 
 | |
| 应用更改时忽略警告。 选择 
 | |
| 即使新策略下不允许连接,在策略安装后仍保持连接打开。 这会覆盖“连接持久性”页面中的设置。 如果更改此属性,则更改不会影响打开的连接,而只会影响未来的连接。 选择 
 | |
| 对象名称。 | |
| 访问规则的状态(present 或 absent)。 选择 
 | |
| 标签标识符的集合。 | |
| 检查点的版本。 如果未给定版本,则采用最新版本。 | |
| 等待任务结束。 例如发布任务。 选择 
 | |
| 等待多少分钟,直到抛出超时错误。 默认值:  | 
示例
- name: add-service-compound-tcp
  cp_mgmt_service_compound_tcp:
    compound_service: pointcast
    keep_connections_open_after_policy_installation: 'True'
    name: mycompoundtcp
    state: present
- name: set-service-compound-tcp
  cp_mgmt_service_compound_tcp:
    compound_service: backweb
    keep_connections_open_after_policy_installation: 'False'
    name: mycompoundtcp
    state: present
- name: delete-service-compound-tcp
  cp_mgmt_service_compound_tcp:
    name: mycompoundtcp
    state: absent
返回值
常见的返回值记录在此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 创建或更新的检查点对象。 返回: 始终返回,删除对象时除外。 | 
