1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Added 'version_added' attributes for new fields.

Also added missing fields to documentation and added some more examples.
This commit is contained in:
Andrew Newdigate 2014-03-06 09:18:38 +00:00
parent 8748d625b2
commit 9d97c560fb

View file

@ -39,6 +39,15 @@ options:
default: null
choices: []
aliases: []
token:
description:
- A pagerduty token, generated on the pagerduty site. Can be used instead of
user/passwd combination.
required: true
default: null
choices: []
aliases: []
version_added: '1.6'
requester_id:
description:
- ID of user making the request. Only needed when using a token and creating a maintenance_window.
@ -46,6 +55,7 @@ options:
default: null
choices: []
aliases: []
version_added: '1.6'
service:
description:
- PagerDuty service ID.
@ -67,6 +77,7 @@ options:
default: 0
choices: []
aliases: []
version_added: '1.6'
desc:
description:
- Short description of maintenance window.
@ -79,16 +90,28 @@ notes:
'''
EXAMPLES='''
# List ongoing maintenance windows.
# List ongoing maintenance windows using a user/passwd
- pagerduty: name=companyabc user=example@example.com passwd=password123 state=ongoing
# Create a 1 hour maintenance window for service FOO123.
# List ongoing maintenance windows using a token
- pagerduty: name=companyabc token=xxxxxxxxxxxxxx state=ongoing
# Create a 1 hour maintenance window for service FOO123, using a user/passwd
- pagerduty: name=companyabc
user=example@example.com
passwd=password123
state=running
service=FOO123
# Create a 5 minute maintenance window for service FOO123, using a token
- pagerduty: name=companyabc
token=xxxxxxxxxxxxxx
hours=0
minutes=5
state=running
service=FOO123
# Create a 4 hour maintenance window for service FOO123 with the description "deployment".
- pagerduty: name=companyabc
user=example@example.com