cache_variable_data
Creates, updates, deletes, gets or lists a cache_variable_data resource.
Overview
| Name | cache_variable_data |
| Type | Resource |
| Id | pagerduty.event_orchestrations.cache_variable_data |
Fields
The following fields are returned by SELECT queries:
- get
The data on an external_data type Cache Variable for this Event Orchestration.
| Name | Datatype | Description |
|---|---|---|
cache_variable_data | string | The string value to set on an external data cache variable configured with data_type: string. |
updated_at | string (date-time) | The date/time the cache variable data was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, cache_variable_id | 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 /> | |
update | update | id, cache_variable_id, cache_variable_data | 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 /> | |
delete | delete | id, cache_variable_id | 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 /> |
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 |
|---|---|---|
cache_variable_id | string | The ID of a Cache Variable. |
id | string | The ID of an Event Orchestration. |
SELECT examples
- get
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
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
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
;