Skip to main content

account_subscriptions

Creates, updates, deletes, gets or lists an account_subscriptions resource.

Overview

Nameaccount_subscriptions
TypeResource
Idpagerduty.business_services.account_subscriptions

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
createinsertidSubscribe your Account to a Business Service.<br /><br />Scoped OAuth requires: subscribers.write<br />
deletedeleteidUnsubscribe your Account from a Business Service.<br /><br />Scoped OAuth requires: subscribers.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.

INSERT examples

Subscribe your Account to a Business Service.<br /><br />Scoped OAuth requires: subscribers.write<br />

INSERT INTO pagerduty.business_services.account_subscriptions (
id
)
SELECT
'{{ id }}'
RETURNING
account_is_subscribed
;

DELETE examples

Unsubscribe your Account from a Business Service.<br /><br />Scoped OAuth requires: subscribers.write<br />

DELETE FROM pagerduty.business_services.account_subscriptions
WHERE id = '{{ id }}' --required
;