mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
pagerduty_updates (#48367)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user