pagerduty
Creates, updates, deletes, gets or lists a pagerduty resource.
Overview
| Name | pagerduty |
| Type | Resource |
| Id | cloudflare.alerting.pagerduty |
Fields
The following fields are returned by SELECT queries:
- get
- list
Create a Notification policy response
| Name | Datatype | Description |
|---|---|---|
id | string | UUID (example: f174e90afafe4643bbbc4a0ed4fc8415) |
List PagerDuty services response
| Name | Datatype | Description |
|---|---|---|
id | string | UUID (example: f174e90afafe4643bbbc4a0ed4fc8415) |
name | string | The name of the pagerduty service. (example: My PagerDuty Service) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | account_id, token_id | Links PagerDuty with the account using the integration token. | |
list | select | account_id | Get a list of all configured PagerDuty services. | |
create | insert | account_id | Creates a new token for integrating with PagerDuty. | |
delete | delete | account_id | Deletes all the PagerDuty Services connected to the account. |
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 |
|---|---|---|
account_id | string | The Cloudflare account ID. |
token_id | string | The API token ID. |
SELECT examples
- get
- list
Links PagerDuty with the account using the integration token.
SELECT
id
FROM cloudflare.alerting.pagerduty
WHERE account_id = '{{ account_id }}' -- required
AND token_id = '{{ token_id }}' -- required
;
Get a list of all configured PagerDuty services.
SELECT
id,
name
FROM cloudflare.alerting.pagerduty
WHERE account_id = '{{ account_id }}' -- required
;
INSERT examples
- create
- Manifest
Creates a new token for integrating with PagerDuty.
INSERT INTO cloudflare.alerting.pagerduty (
account_id
)
SELECT
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;
# Description fields are for documentation purposes
- name: pagerduty
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the pagerduty resource.
DELETE examples
- delete
Deletes all the PagerDuty Services connected to the account.
DELETE FROM cloudflare.alerting.pagerduty
WHERE account_id = '{{ account_id }}' --required
;