escalation_policies
Creates, updates, deletes, gets or lists an escalation_policies resource.
Overview
| Name | escalation_policies |
| Type | Resource |
| Id | pagerduty.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
delete_team_escalation_policy | delete | id, escalation_policy_id | Accept, Content-Type | 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 |
update_team_escalation_policy | exec | id, escalation_policy_id | Accept, Content-Type | 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 |
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.
| Name | Datatype | Description |
|---|---|---|
escalation_policy_id | string | The escalation policy ID on the team. |
id | string | The ID of the resource. |
Accept | string | The Accept header is used as a versioning header. |
Content-Type | string |
DELETE examples
- delete_team_escalation_policy
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
- update_team_escalation_policy
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 }}'
;