#PagerDuty PowerShell CmdLets
PowerShell CmdLets for using the PagerDuty API.
Send-PagerDutyEvent
- allows you to send Trigger, Acknowledge and Resolve events to the PagerDuty API.Get-PagerDutyEvent
- gets a list of events from PagerDuty.
- In PagerDuty Admin Console, create a Generic API service for
Send-PagerDutyEvent
to use. You will need the Service API Key - In PagerDuty Admin Console, create an API Access Key service for
Get-PagerDutyEvent
to use.
- Open PowerShell and ensure you set your Execution Policy to allow scripts be run, for example
Set-ExecutionPolicy RemoteSigned
. - In PowerShell, enter the directory the you downloaded the script, and dot source it
. .\PagerDutyCmdLets.ps1
- Use the CmdLet built in help
Get-Help Send-PagerDutyEvent
orGet-Help Get-PagerDutyEvent
- PagerDuty - http://www.pagerduty.com/
- PagerDuty Event API - http://developer.pagerduty.com/documentation/integration/events
- My Blog - http://www.hodgkins.net.au