check_point.mgmt.cp_mgmt_vpn_community_star 模块 – 通过 Web 服务 API 管理 Check Point 上的 vpn-community-star 对象
注意
此模块是 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_vpn_community_star。
check_point.mgmt 1.0.0 中的新增功能
概要
- 管理 Check Point 设备上的 vpn-community-star 对象,包括创建、更新和删除对象。 
- 所有操作均通过 Web 服务 API 执行。 
参数
| 参数 | 注释 | 
|---|---|
| 如果任务完成后已执行更改,则发布当前会话。 选项 
 | |
| 由名称或 UID 标识的中心 VPN 网关和 VPN 设备对象的集合。 | |
| 对象的颜色。应该是现有颜色之一。 选项 
 | |
| 注释字符串。 | |
| 响应中某些字段的详细程度可以从仅显示对象的 UID 值到对象的完全详细表示形式不等。 选项 
 | |
| 要使用的加密方法。 选项 
 | |
| 要使用的加密套件。 选项 
 | |
| VPN 粒度加密设置。 | |
| 要使用的加密方法。 选项 
 | |
| 要使用的加密套件。 选项 
 | |
| 由名称或 UID 标识的外部管理或第三方网关。 | |
| IKE 第 1 阶段设置。仅当 encryption-suite 设置为 [custom] 时适用。 | |
| 要使用的哈希算法。 选项 
 | |
| 要使用的 Diffie-Hellman 组。 选项 
 | |
| 要使用的加密算法。 选项 
 | |
| 指示 IKE 第 1 阶段重新协商的时间间隔。 | |
| 指示 [ike-p1-rekey-time-unit] 参数的时间单位,四舍五入到分钟。 选项 
 | |
| IKE 第 2 阶段设置。仅当 encryption-suite 设置为 [custom] 时适用。 | |
| 要使用的哈希算法。 选项 
 | |
| 要使用的加密算法。 选项 
 | |
| 要使用的 Diffie-Hellman 组。 选项 
 | |
| 指示 IKE 第 2 阶段重新协商的时间间隔。 | |
| 指示 [ike-p2-rekey-time-unit] 参数的时间单位。 选项 
 | |
| 指示是否对 IKE 第 2 阶段使用完全正向保密 (PFS)。 选项 
 | |
| 由名称或 UID 标识的内部管理的 Check Point 网关,或对参与此社区的所有内部网关使用“Any”。 | |
| 忽略错误应用更改。您将无法发布此类更改。如果忽略警告标志被忽略,则警告也将被忽略。 选项 
 | |
| 忽略警告应用更改。 选项 
 | |
| IKE 第 1 阶段设置。仅当 encryption-suite 设置为 [custom] 时适用。 | |
| 要使用的哈希算法。 选项 
 | |
| 要使用的 Diffie-Hellman 组。 选项 
 | |
| 要使用的加密算法。 选项 
 | |
| 指示 IKE 第 1 阶段重新协商的时间间隔。 | |
| 指示 [ike-p1-rekey-time-unit] 参数的时间单位,四舍五入到分钟。 选项 
 | |
| IKE 第 2 阶段设置。仅当 encryption-suite 设置为 [custom] 时适用。 | |
| 要使用的哈希算法。 选项 
 | |
| 要使用的加密算法。 选项 
 | |
| 要使用的 Diffie-Hellman 组。 选项 
 | |
| 指示 IKE 第 2 阶段重新协商的时间间隔。 | |
| 指示 [ike-p2-rekey-time-unit] 参数的时间单位。 选项 
 | |
| 指示是否对 IKE 第 2 阶段使用完全正向保密 (PFS)。 选项 
 | |
| 指示网状社区是否在中心。 选项 
 | |
| 对象名称。 | |
| 参与者 GW 的覆盖 VPN 域。 | |
| 覆盖 VPN 域中由名称或 UID 标识的参与者网关。 | |
| 由名称或 UID 标识的 VPN 域网络。 | |
| 代表由名称或 UID 标识的卫星网关的网关对象的集合。 | |
| 外部网关的共享密钥。 | |
| 由名称或 UID 标识的外部网关。 | |
| 共享密钥。 | |
| 访问规则的状态(存在或不存在)。 选项 
 | |
| 标签标识符的集合。 | |
| 将使用 VPN 隧道共享选项。 选项 
 | |
| 指示是否应将共享密钥用于所有外部网关。 选项 
 | |
| Checkpoint 的版本。如果未指定,则采用最新版本。 | |
| 等待任务结束。例如发布任务。 选项 
 | |
| 在抛出超时错误之前等待多少分钟。 默认:  | 
示例
- name: add-vpn-community-star
  cp_mgmt_vpn_community_star:
    center_gateways: Second_Security_Gateway
    encryption_method: prefer ikev2 but support ikev1
    encryption_suite: custom
    ike_phase_1:
      data_integrity: sha1
      diffie_hellman_group: group 19
      encryption_algorithm: aes-128
    ike_phase_2:
      data_integrity: aes-xcbc
      encryption_algorithm: aes-gcm-128
    name: New_VPN_Community_Star_1
    state: present
- name: set-vpn-community-star
  cp_mgmt_vpn_community_star:
    encryption_method: ikev2 only
    encryption_suite: custom
    ike_phase_1:
      data_integrity: sha1
      diffie_hellman_group: group 19
      encryption_algorithm: aes-128
    ike_phase_2:
      data_integrity: aes-xcbc
      encryption_algorithm: aes-gcm-128
    name: New_VPN_Community_Star_1
    state: present
- name: delete-vpn-community-star
  cp_mgmt_vpn_community_star:
    name: New_VPN_Community_Star_1
    state: absent
返回值
常见的返回值已在 此处 记录,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 已创建或更新的 Checkpoint 对象。 返回: 始终返回,除非删除对象。 | 
