Skip to main content

escalation_policies

Creates, updates, deletes, gets or lists an escalation_policies resource.

Overview

Nameescalation_policies
TypeResource
Idpagerduty.teams.escalation_policies

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
addinsertid, escalation_policy_idAdd an escalation policy to a team.<br /><br />A team is a collection of Users and Escalation Policies that represent a group of people within an organization.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#teams)<br /><br />Scoped OAuth requires: teams.write<br />
removedeleteid, escalation_policy_idRemove an escalation policy from a team.<br /><br />A team is a collection of Users and Escalation Policies that represent a group of people within an organization.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#teams)<br /><br />Scoped OAuth requires: teams.write<br />

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
escalation_policy_idstringThe escalation policy ID on the team.
idstringThe ID of the resource.

INSERT examples

Add an escalation policy to a team.<br /><br />A team is a collection of Users and Escalation Policies that represent a group of people within an organization.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#teams)<br /><br />Scoped OAuth requires: teams.write<br />

INSERT INTO pagerduty.teams.escalation_policies (
id,
escalation_policy_id
)
SELECT
'{{ id }}',
'{{ escalation_policy_id }}'
;

DELETE examples

Remove an escalation policy from a team.<br /><br />A team is a collection of Users and Escalation Policies that represent a group of people within an organization.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#teams)<br /><br />Scoped OAuth requires: teams.write<br />

DELETE FROM pagerduty.teams.escalation_policies
WHERE id = '{{ id }}' --required
AND escalation_policy_id = '{{ escalation_policy_id }}' --required
;