Skip to main content

cache_variables

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

Overview

Namecache_variables
TypeResource
Idpagerduty.event_orchestrations.cache_variables

Fields

The following fields are returned by SELECT queries:

The fetched Cache Variable for this Event Orchestration.

NameDatatypeDescription

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, cache_variable_idGet a Cache Variable for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.read<br />
listselectidList Cache Variables for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.read<br />
createinsertid, cache_variableCreate a Cache Variable for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.write<br />
updateupdateid, cache_variable_id, cache_variableUpdate a Cache Variable for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.write<br />
deletedeleteid, cache_variable_idDelete a Cache Variable for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.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
cache_variable_idstringThe ID of a Cache Variable.
idstringThe ID of an Event Orchestration.

SELECT examples

Get a Cache Variable for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.read<br />

SELECT
*
FROM pagerduty.event_orchestrations.cache_variables
WHERE id = '{{ id }}' -- required
AND cache_variable_id = '{{ cache_variable_id }}' -- required
;

INSERT examples

Create a Cache Variable for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.write<br />

INSERT INTO pagerduty.event_orchestrations.cache_variables (
cache_variable,
id
)
SELECT
'{{ cache_variable }}' /* required */,
'{{ id }}'
RETURNING
cache_variable
;

UPDATE examples

Update a Cache Variable for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.write<br />

UPDATE pagerduty.event_orchestrations.cache_variables
SET
cache_variable = '{{ cache_variable }}'
WHERE
id = '{{ id }}' --required
AND cache_variable_id = '{{ cache_variable_id }}' --required
AND cache_variable = '{{ cache_variable }}' --required
RETURNING
cache_variable;

DELETE examples

Delete a Cache Variable for a Global Event Orchestration.<br /><br />Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#event-orchestrations)<br /><br />Scoped OAuth requires: event_orchestrations.write<br />

DELETE FROM pagerduty.event_orchestrations.cache_variables
WHERE id = '{{ id }}' --required
AND cache_variable_id = '{{ cache_variable_id }}' --required
;