pagerduty_updates (#48367)
This commit is contained in:
parent
907ff2f26c
commit
9d10a0e9f8
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue