Giter VIP home page Giter VIP logo

pagerduty-posh-api-client's Introduction

PagerDuty API Client for PowerShell

This project will serve as a PowerShell wrapper of the PagerDuty API.

Version 0.9 - This project is largly untested, use at your own risk. Documentation and in-line help to follow.

To download, click the 'Download ZIP' button on this main page, and extract your files to the modules folder. Then run PowerShell and run Import-Module PagerDuty.

Or, run the following script in PowerShell which will do all of that for you and will unload the module in your user Modules folder:

Add-Type -assembly “system.io.compression.filesystem”
$Dest = $env:USERPROFILE + "\Documents\WindowsPowerShell\Modules\PagerDuty"
if (-not (test-path $Dest)) { New-Item -Path $Dest -ItemType Directory } | Out-Null
Invoke-WebRequest "https://github.com/robcerda60/PagerDuty-PoSh-API-Client/archive/master.zip" -OutFile "$Dest\GitSrc.zip"
[io.compression.zipfile]::ExtractToDirectory("$Dest\GitSrc.zip", $Dest)
gci -Path "$Dest\PagerDuty-PoSh-API-Client-master" -Recurse | Move-Item -Destination $Dest
Remove-Item ("$Dest\GitSrc.zip") -Force
Remove-Item ("$Dest\PagerDuty-PoSh-API-Client-master") -Force

The first time you run any cmdlet you will be asked to input your API key and your subdomain. This will be saved in a JSON file in the same folder as the rest of the PagerDuty module` files.

The following Cmdlets are accessible once you import the module:

  • Get-PagerDutyAlert

  • Get-PagerDutyContactMethod

  • Get-PagerDutyEscalationPolicy

  • Get-PagerDutyEscalationRule

  • Get-PagerDutyIncident

  • Get-PagerDutyIncidentNote

  • Get-PagerDutyLogEntry

  • Get-PagerDutyMaintenanceWindow

  • Get-PagerDutyNotificationRule

  • Get-PagerDutyReport

  • Get-PagerDutySchedule

  • Get-PagerDutyScheduleOverride

  • Get-PagerDutyService

  • Get-PagerDutyTeam

  • Get-PagerDutyUser

  • New-PagerDutyContactMethod

  • New-PagerDutyEmailFilter

  • New-PagerDutyEscalationPolicy

  • New-PagerDutyEscalationRule

  • New-PagerDutyEscalationRuleObject

  • New-PagerDutyEscalationRuleTargetObject

  • New-PagerDutyIncidentNote

  • New-PagerDutyIncidentObject

  • New-PagerDutyMaintenanceWindow

  • New-PagerDutyNotificationRule

  • New-PagerDutySchedule

  • New-PagerDutyScheduleLayerObject

  • New-PagerDutyScheduleOverride

  • New-PagerDutyScheduleRestrictionObject

  • New-PagerDutyScheduleUserEntryObject

  • New-PagerDutyService

  • New-PagerDutyTeam

  • New-PagerDutyUser

  • Remove-PagerDutyContactMethod

  • Remove-PagerDutyEmailFilter

  • Remove-PagerDutyEscalationPolicy

  • Remove-PagerDutyEscalationRule

  • Remove-PagerDutyMaintenanceWindow

  • Remove-PagerDutyNotificationRule

  • Remove-PagerDutySchedule

  • Remove-PagerDutyScheduleOverride

  • Remove-PagerDutyService

  • Remove-PagerDutyTeam

  • Remove-PagerDutyUser

  • Set-PagerDutyContactMethod

  • Set-PagerDutyEscalationPolicy

  • Set-PagerDutyEscalationRule

  • Set-PagerDutyIncident

  • Set-PagerDutyMaintenanceWindow

  • Set-PagerDutyNotificationRule

  • Set-PagerDutySchedule

  • Set-PagerDutyService

  • Set-PagerDutyTeam

  • Set-PagerDutyUser

pagerduty-posh-api-client's People

Contributors

robcerda avatar squid808 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.