trigger_services
Creates, updates, deletes, gets or lists a trigger_services resource.
Overview
| Name | trigger_services |
| Type | Resource |
| Id | pagerduty.incident_workflows.trigger_services |
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 |
|---|---|---|---|---|
create | insert | id, service | Associate a Service with an existing Incident Workflow Trigger<br /><br />Scoped OAuth requires: incident_workflows.write<br /> | |
delete | delete | trigger_id, service_id | Remove a an existing Service from an Incident Workflow Trigger<br /><br />Scoped OAuth requires: incident_workflows.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 |
|---|---|---|
id | string | The ID of the resource. |
service_id | string | Identifier for the Service |
trigger_id | string | Identifier for the Trigger |
INSERT examples
- create
- Manifest
Associate a Service with an existing Incident Workflow Trigger<br /><br />Scoped OAuth requires: incident_workflows.write<br />
INSERT INTO pagerduty.incident_workflows.trigger_services (
service,
id
)
SELECT
'{{ service }}' /* required */,
'{{ id }}'
RETURNING
trigger
;
# Description fields are for documentation purposes
- name: trigger_services
props:
- name: id
value: "{{ id }}"
description: Required parameter for the trigger_services resource.
- name: service
value:
id: "{{ id }}"
DELETE examples
- delete
Remove a an existing Service from an Incident Workflow Trigger<br /><br />Scoped OAuth requires: incident_workflows.write<br />
DELETE FROM pagerduty.incident_workflows.trigger_services
WHERE trigger_id = '{{ trigger_id }}' --required
AND service_id = '{{ service_id }}' --required
;