community.general.pingdom 模块 – 暂停/恢复 Pingdom 警报

注意

此模块是 community.general 集合 (版本 10.1.0) 的一部分。

如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用: ansible-galaxy collection install community.general。您需要其他需求才能使用此模块,有关详细信息,请参阅 需求

要在 playbook 中使用它,请指定: community.general.pingdom

概要

  • 此模块允许您暂停/恢复 Pingdom 警报。

需求

执行此模块的主机需要以下需求。

参数

参数

注释

checkid

字符串 / 必需

检查的 Pingdom ID。

key

字符串 / 必需

Pingdom API 密钥。

passwd

字符串 / 必需

Pingdom 用户密码。

state

字符串 / 必需

定义检查是否应运行或暂停。

选项

  • "running"

  • "paused"

  • "started"

  • "stopped"

uid

字符串 / 必需

Pingdom 用户 ID。

属性

属性

支持

描述

check_mode

支持:不支持

可以在 check_mode 下运行并返回更改状态预测,而无需修改目标。

diff_mode

支持:不支持

在差异模式下,将返回有关已更改内容(或可能需要在 check_mode 中更改的内容)的详细信息。

备注

注意

  • 此模块尚不支持添加/删除检查。

示例

- name: Pause the check with the ID of 12345
  community.general.pingdom:
    uid: [email protected]
    passwd: password123
    key: apipassword123
    checkid: 12345
    state: paused

- name: Unpause the check with the ID of 12345
  community.general.pingdom:
    uid: [email protected]
    passwd: password123
    key: apipassword123
    checkid: 12345
    state: running

作者

  • Dylan Silva (@thaumos)

  • Justin Johns