Skip to main content

status_update_notification_rules

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

Overview

Namestatus_update_notification_rules
TypeResource
Idpagerduty.users.status_update_notification_rules

Fields

The following fields are returned by SELECT queries:

The user's status update notification rule requested.

NameDatatypeDescription
contact_methodobject(opaque JSON object)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, status_update_notification_rule_idinclude[]Get details about a user's status update notification rule.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.read<br />
listselectidinclude[]List status update notification rules of your PagerDuty user.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.read<br />
createinsertid, status_update_notification_ruleCreate a new status update notification rule.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.write<br />
updateupdateid, status_update_notification_rule_id, status_update_notification_ruleUpdate a user's status update notification rule.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.write<br />
deletedeleteid, status_update_notification_rule_idRemove a user's status update notification rule.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.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.
status_update_notification_rule_idstringThe status update notification rule ID on the user.
include[]stringArray of additional details to include.

SELECT examples

Get details about a user's status update notification rule.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.read<br />

SELECT
contact_method
FROM pagerduty.users.status_update_notification_rules
WHERE id = '{{ id }}' -- required
AND status_update_notification_rule_id = '{{ status_update_notification_rule_id }}' -- required
AND include[] = '{{ include[] }}'
;

INSERT examples

Create a new status update notification rule.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.write<br />

INSERT INTO pagerduty.users.status_update_notification_rules (
status_update_notification_rule,
id
)
SELECT
'{{ status_update_notification_rule }}' /* required */,
'{{ id }}'
RETURNING
status_update_notification_rule
;

UPDATE examples

Update a user's status update notification rule.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.write<br />

UPDATE pagerduty.users.status_update_notification_rules
SET
status_update_notification_rule = '{{ status_update_notification_rule }}'
WHERE
id = '{{ id }}' --required
AND status_update_notification_rule_id = '{{ status_update_notification_rule_id }}' --required
AND status_update_notification_rule = '{{ status_update_notification_rule }}' --required
RETURNING
notification_rule;

DELETE examples

Remove a user's status update notification rule.<br /><br />Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#users)<br /><br />Scoped OAuth requires: users.write<br />

DELETE FROM pagerduty.users.status_update_notification_rules
WHERE id = '{{ id }}' --required
AND status_update_notification_rule_id = '{{ status_update_notification_rule_id }}' --required
;