Skip to main content

trigger_services

Creates, updates, deletes, gets or lists a trigger_services resource.

Overview

Nametrigger_services
TypeResource
Idpagerduty.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:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertid, serviceAssociate a Service with an existing Incident Workflow Trigger<br /><br />Scoped OAuth requires: incident_workflows.write<br />
deletedeletetrigger_id, service_idRemove 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.

NameDatatypeDescription
idstringThe ID of the resource.
service_idstringIdentifier for the Service
trigger_idstringIdentifier for the Trigger

INSERT examples

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
;

DELETE examples

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
;