PagerDuty-PowerShell-CmdLets
                                
                                
                                
                                    PagerDuty-PowerShell-CmdLets copied to clipboard
                            
                            
                            
                        PowerShell CmdLets for using the PagerDuty API.
#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.
Requirements
- In PagerDuty Admin Console, create a Generic API service for 
Send-PagerDutyEventto use. You will need the Service API Key - In PagerDuty Admin Console, create an API Access Key service for 
Get-PagerDutyEventto use. 
Usage
- 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-PagerDutyEventorGet-Help Get-PagerDutyEvent 
Links
- PagerDuty - http://www.pagerduty.com/
 - PagerDuty Event API - http://developer.pagerduty.com/documentation/integration/events
 - My Blog - http://www.hodgkins.net.au