check_point.mgmt.cp_mgmt_nat_section 模块 – 通过 Web Services API 管理 Checkpoint 上的 nat-section 对象
注意
此模块是 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_nat_section。
check_point.mgmt 2.0.0 中的新功能
概要
- 管理 Checkpoint 设备上的 nat-section 对象,包括创建、更新和删除对象。 
- 所有操作都通过 Web Services API 执行。 
参数
| 参数 | 注释 | 
|---|---|
| 如果在任务完成后执行了更改,则发布当前会话。 选项 
 | |
| 响应中某些字段的详细级别可能会有所不同,从仅显示对象的 UID 值到对象的完全详细表示。 选项 
 | |
| 应用更改时忽略错误。您将无法发布此类更改。如果省略了 ignore-warnings 标志,则也会忽略警告。 选项 
 | |
| 应用更改时忽略警告。 选项 
 | |
| 对象名称。 | |
| 包的名称。 | |
| 在规则库中的位置。 | |
| 在规则库中的位置。 此字段的使用仅与“add”操作相关。 | |
| 在由名称标识的特定规则/部分之上添加节。 | |
| 在由名称标识的特定规则/部分之下添加节。 | |
| 将节添加到由名称标识的特定部分的底部。 | |
| 将节添加到由名称标识的特定部分的顶部。 | |
| 访问规则的状态(存在或不存在)。 选项 
 | |
| Checkpoint 的版本。如果未给出,则采用最新版本。 | |
| 等待任务结束。例如发布任务。 选项 
 | |
| 等待多少分钟后抛出超时错误。 默认值:  | 
示例
- name: add-nat-section
  cp_mgmt_nat_section:
    name: New Section 1
    package: standard
    position: 1
    state: present
- name: set-nat-section
  cp_mgmt_nat_section:
    name: New Section 1
    package: standard
    state: present
- name: delete-nat-section
  cp_mgmt_nat_section:
    name: New Section 1
    package: standard
    state: absent
返回值
常见的返回值记录在此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 创建或更新的检查点对象。 返回值:始终,删除对象时除外。 | 
