saltext.pagerduty.utils.pagerduty

Library for interacting with PagerDuty API

Added in version 2014.7.0.

configuration:

This module can be used by specifying the name of a configuration profile in the minion config, minion pillar, or master config.

For example:

my-pagerduty-account:
    pagerduty.subdomain: mysubdomain
    pagerduty.api_key: F3Rbyjbve43rfFWf2214
saltext.pagerduty.utils.pagerduty.query(method='GET', profile_dict=None, url=None, path='api/v1', action=None, api_key=None, service=None, params=None, data=None, subdomain=None, client_url=None, description=None, opts=None, verify_ssl=True)[source]

Query the PagerDuty API

saltext.pagerduty.utils.pagerduty.list_items(action, key, profile_dict=None, api_key=None, opts=None)[source]

List items belonging to an API call. Used for list_services() and list_incidents()