pagerduty_updates (#48367)

This commit is contained in:
Tor Peeto 2018-11-14 06:47:12 -08:00 committed by John R Barker
parent 907ff2f26c
commit 9d10a0e9f8

View file

@ -119,6 +119,20 @@ EXAMPLES = '''
user: example@example.com
state: absent
window_id: '{{ pd_window.result.maintenance_window.id }}'
# Delete a maintenance window from a separate playbook than its creation, and if it is the only existing maintenance window.
- pagerduty:
requester_id: XXXXXXX
token: yourtoken
state: ongoing
register: pd_window
- pagerduty:
requester_id: XXXXXXX
token: yourtoken
state: absent
window_id: "{{ pd_window.result.maintenance_windows[0].id }}"
'''
import datetime