account_subscriptions
Creates, updates, deletes, gets or lists an account_subscriptions resource.
Overview
| Name | account_subscriptions |
| Type | Resource |
| Id | pagerduty.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create | insert | id | Subscribe your Account to a Business Service.<br /><br />Scoped OAuth requires: subscribers.write<br /> | |
delete | delete | id | Unsubscribe 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.
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the resource. |
INSERT examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: account_subscriptions
props:
- name: id
value: "{{ id }}"
description: Required parameter for the account_subscriptions resource.
DELETE examples
- delete
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
;