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 |
|---|---|---|---|---|
add | insert | id, escalation_policy_id | 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 /> | |
remove | delete | id, escalation_policy_id | 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 /> |
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. |
INSERT examples
- add
- Manifest
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 }}'
;
# Description fields are for documentation purposes
- name: escalation_policies
props:
- name: id
value: "{{ id }}"
description: Required parameter for the escalation_policies resource.
- name: escalation_policy_id
value: "{{ escalation_policy_id }}"
description: Required parameter for the escalation_policies resource.
DELETE examples
- remove
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
;