Skip to main content

pagerduty

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

Overview

Namepagerduty
TypeResource
Idcloudflare.alerting.pagerduty

Fields

The following fields are returned by SELECT queries:

Create a Notification policy response

NameDatatypeDescription
idstringUUID (example: f174e90afafe4643bbbc4a0ed4fc8415)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, token_idLinks PagerDuty with the account using the integration token.
listselectaccount_idGet a list of all configured PagerDuty services.
createinsertaccount_idCreates a new token for integrating with PagerDuty.
deletedeleteaccount_idDeletes 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
token_idstringThe API token ID.

SELECT examples

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
;

INSERT examples

Creates a new token for integrating with PagerDuty.

INSERT INTO cloudflare.alerting.pagerduty (
account_id
)
SELECT
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

DELETE examples

Deletes all the PagerDuty Services connected to the account.

DELETE FROM cloudflare.alerting.pagerduty
WHERE account_id = '{{ account_id }}' --required
;