check_point.mgmt.cp_mgmt_mds 模块 – 通过 Web Services API 管理 Checkpoint 上的 mds 对象

注意

此模块是 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_mds

check_point.mgmt 2.1.0 中的新功能

概要

  • 管理 Checkpoint 设备上的 mds 对象,包括创建、更新和删除对象。

  • 所有操作都通过 Web Services API 执行。

参数

参数

注释

auto_publish_session

布尔值

如果在任务完成后执行了更改,则发布当前会话。

选项

  • false ← (默认)

  • true

color

字符串

对象的颜色。应为现有颜色之一。

选项

  • "水绿色"

  • "黑色"

  • "蓝色"

  • "克里特蓝"

  • "浅黄褐色"

  • "青色"

  • "深绿色"

  • "卡其色"

  • "兰花色"

  • "深橙色"

  • "深海绿色"

  • "粉红色"

  • "绿松石色"

  • "深蓝色"

  • "火砖色"

  • "棕色"

  • "森林绿色"

  • "金色"

  • "深金色"

  • "灰色"

  • "深灰色"

  • "浅绿色"

  • "柠檬薄纱"

  • "珊瑚色"

  • "海绿色"

  • "天蓝色"

  • "洋红色"

  • "紫色"

  • "板岩蓝色"

  • "紫红色"

  • "海军蓝色"

  • "橄榄色"

  • "橙色"

  • "红色"

  • "赭色"

  • "黄色"

comments

字符串

注释字符串。

details_level

字符串

响应中某些字段的详细程度可能有所不同,从仅显示对象的 UID 值到对象的完整详细表示。

选项

  • "uid"

  • "标准"

  • "完整"

hardware

字符串

硬件名称。例如,开放式服务器、Smart-1、其他。

ignore_errors

布尔值

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

选项

  • false

  • true

ignore_warnings

布尔值

应用更改时忽略警告。

选项

  • false

  • true

ip_address

字符串

IPv4 或 IPv6 地址。如果需要两个地址,请显式使用 ipv4-address 和 ipv6-address 字段。

ip_pool_first

字符串

范围内的第一个 IP 地址。

ip_pool_last

字符串

范围内的最后一个 IP 地址。

ipv4_address

字符串

IPv4 地址。

ipv4_pool_first

字符串

范围内的第一个 IPv4 地址。

ipv4_pool_last

字符串

范围内的最后一个 IPv4 地址。

ipv6_address

字符串

IPv6 地址。

ipv6_pool_first

字符串

范围内的第一个 IPv6 地址。

ipv6_pool_last

字符串

范围内的最后一个 IPv6 地址。

name

字符串 / 必需

对象名称。

one_time_password

字符串

安全内部连接一次性密码。

os

字符串

操作系统名称。例如,Gaia、Linux、SecurePlatform。

server_type

字符串

管理服务器的类型。

选项

  • "多域服务器"

  • "多域日志服务器"

state

字符串

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

选项

  • "present" ← (默认)

  • "absent"

tags

列表 / 元素=字符串

标签标识符的集合。

version

字符串

系统版本。

wait_for_task

布尔值

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

选项

  • false

  • true ← (默认)

wait_for_task_timeout

整数

等待多少分钟直到抛出超时错误。

默认值: 30

示例

- name: add-mds
  cp_mgmt_mds:
    hardware: open server
    ip_address: 1.1.1.1
    ip_pool_first: 2.2.2.2
    ip_pool_last: 3.3.3.3
    name: mymds
    os: gaia
    server_type: multi-domain server
    state: present

- name: set-mds
  cp_mgmt_mds:
    hardware: Smart-1
    ip_address: 1.2.3.4
    name: mymds
    os: linux
    state: present

- name: delete-mds
  cp_mgmt_mds:
    name: mymds
    state: absent

返回值

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

描述

cp_mgmt_mds

字典

已创建或更新的 Checkpoint 对象。

返回:始终,删除对象时除外。

作者

  • Or Soffer (@chkp-orso)