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
delete_team_escalation_policydeleteid, escalation_policy_idAccept, Content-TypeRemove an escalation policy from a team.

A team is a collection of Users and Escalation Policies that represent a group of people within an organization.

For more information see the API Concepts Document

Scoped OAuth requires: teams.write
update_team_escalation_policyexecid, escalation_policy_idAccept, Content-TypeAdd an escalation policy to a team.

A team is a collection of Users and Escalation Policies that represent a group of people within an organization.

For more information see the API Concepts Document

Scoped OAuth requires: teams.write

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.
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring

DELETE examples

Remove an escalation policy from a team.

A team is a collection of Users and Escalation Policies that represent a group of people within an organization.

For more information see the API Concepts Document

Scoped OAuth requires: teams.write

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

Lifecycle Methods

Add an escalation policy to a team.

A team is a collection of Users and Escalation Policies that represent a group of people within an organization.

For more information see the API Concepts Document

Scoped OAuth requires: teams.write

EXEC pagerduty.teams.escalation_policies.update_team_escalation_policy 
@id='{{ id }}' --required,
@escalation_policy_id='{{ escalation_policy_id }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}'
;