Skip to main content

status_updates_subscribers

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

Overview

Namestatus_updates_subscribers
TypeResource
Idpagerduty.incidents.status_updates_subscribers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
subscriber_idstringThe ID of the entity being subscribed
has_indirect_subscriptionbooleanIf this subcriber has an indirect subscription to this incident via another object
subscribed_viaarray
subscriber_typestringThe type of the entity being subscribed

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_notification_subscribersselectidAcceptRetrieve a list of Notification Subscribers on the Incident.

<!-- theme: warning -->
> Users must be added through POST /incident/&#123;id&#125;/status_updates/subscribers to be returned from this endpoint.
Scoped OAuth requires: subscribers.read
create_incident_notification_subscribersinsertid, data__subscribersAcceptSubscribe the given entities to Incident Status Update Notifications.

Scoped OAuth requires: subscribers.write
_get_incident_notification_subscribersexecidAcceptRetrieve a list of Notification Subscribers on the Incident.

<!-- theme: warning -->
> Users must be added through POST /incident/&#123;id&#125;/status_updates/subscribers to be returned from this endpoint.
Scoped OAuth requires: subscribers.read

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

SELECT examples

Retrieve a list of Notification Subscribers on the Incident.

<!-- theme: warning -->
> Users must be added through POST /incident/&#123;id&#125;/status_updates/subscribers to be returned from this endpoint.
Scoped OAuth requires: subscribers.read

SELECT
subscriber_id,
has_indirect_subscription,
subscribed_via,
subscriber_type
FROM pagerduty.incidents.status_updates_subscribers
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
;

INSERT examples

Subscribe the given entities to Incident Status Update Notifications.

Scoped OAuth requires: subscribers.write

INSERT INTO pagerduty.incidents.status_updates_subscribers (
data__subscribers,
id,
Accept
)
SELECT
'{{ subscribers }}' /* required */,
'{{ id }}',
'{{ Accept }}'
RETURNING
subscriptions
;

Lifecycle Methods

Retrieve a list of Notification Subscribers on the Incident.

<!-- theme: warning -->
> Users must be added through POST /incident/&#123;id&#125;/status_updates/subscribers to be returned from this endpoint.
Scoped OAuth requires: subscribers.read

EXEC pagerduty.incidents.status_updates_subscribers._get_incident_notification_subscribers 
@id='{{ id }}' --required,
@Accept='{{ Accept }}'
;