Skip to main content

cache_variable_data

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

Overview

Namecache_variable_data
TypeResource
Idpagerduty.event_orchestrations.cache_variable_data

Fields

The following fields are returned by SELECT queries:

The data on an external_data type Cache Variable for this Event Orchestration.

NameDatatypeDescription
cache_variable_datastringThe string value to set on an external data cache variable configured with data_type: string.
updated_atstring (date-time)The date/time the cache variable data was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, cache_variable_idGet the data for an external_data type Cache Variable on a Global Orchestration.<br /><br />Use External Data type Cache Variables to store string, number, or boolean values via a dedicated API endpoint. These stored values can then be used in conditions or actions in Event Orchestration rules.<br /><br />For more information see the [Knowledge Base](https:​//support.pagerduty.com/main/docs/event-orchestration-cache-variables)<br /><br />Scoped OAuth requires: event_orchestrations.read<br />
updateupdateid, cache_variable_id, cache_variable_dataUpdate data for an external_data type Cache Variable on a Global Event Orchestration<br /><br />Use External Data type Cache Variables to store string, number, or boolean values via a dedicated API endpoint. These stored values can then be used in conditions or actions in Event Orchestration rules.<br /><br />For more information see the [Knowledge Base](https:​//support.pagerduty.com/main/docs/event-orchestration-cache-variables)<br /><br />Scoped OAuth requires: event_orchestrations.write<br />
deletedeleteid, cache_variable_idDelete data for an external_data type Cache Variable on a Global Event Orchestration<br /><br />Use External Data type Cache Variables to store string, number, or boolean values via a dedicated API endpoint. These stored values can then be used in conditions or actions in Event Orchestration rules.<br /><br />For more information see the [Knowledge Base](https:​//support.pagerduty.com/main/docs/event-orchestration-cache-variables)<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 the data for an external_data type Cache Variable on a Global Orchestration.<br /><br />Use External Data type Cache Variables to store string, number, or boolean values via a dedicated API endpoint. These stored values can then be used in conditions or actions in Event Orchestration rules.<br /><br />For more information see the [Knowledge Base](https:​//support.pagerduty.com/main/docs/event-orchestration-cache-variables)<br /><br />Scoped OAuth requires: event_orchestrations.read<br />

SELECT
cache_variable_data,
updated_at
FROM pagerduty.event_orchestrations.cache_variable_data
WHERE id = '{{ id }}' -- required
AND cache_variable_id = '{{ cache_variable_id }}' -- required
;

UPDATE examples

Update data for an external_data type Cache Variable on a Global Event Orchestration<br /><br />Use External Data type Cache Variables to store string, number, or boolean values via a dedicated API endpoint. These stored values can then be used in conditions or actions in Event Orchestration rules.<br /><br />For more information see the [Knowledge Base](https:​//support.pagerduty.com/main/docs/event-orchestration-cache-variables)<br /><br />Scoped OAuth requires: event_orchestrations.write<br />

UPDATE pagerduty.event_orchestrations.cache_variable_data
SET
cache_variable_data = '{{ cache_variable_data }}'
WHERE
id = '{{ id }}' --required
AND cache_variable_id = '{{ cache_variable_id }}' --required
AND cache_variable_data = '{{ cache_variable_data }}' --required
RETURNING
cache_variable_data,
updated_at;

DELETE examples

Delete data for an external_data type Cache Variable on a Global Event Orchestration<br /><br />Use External Data type Cache Variables to store string, number, or boolean values via a dedicated API endpoint. These stored values can then be used in conditions or actions in Event Orchestration rules.<br /><br />For more information see the [Knowledge Base](https:​//support.pagerduty.com/main/docs/event-orchestration-cache-variables)<br /><br />Scoped OAuth requires: event_orchestrations.write<br />

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