cache_variables
Creates, updates, deletes, gets or lists a cache_variables resource.
Overview
| Name | cache_variables |
| Type | Resource |
| Id | pagerduty.event_orchestrations.cache_variables |
Fields
The following fields are returned by SELECT queries:
- get
- list
The fetched Cache Variable for this Event Orchestration.
| Name | Datatype | Description |
|---|
The Cache Variables for this Event Orchestration.
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, cache_variable_id | 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 /> | |
list | select | id | List 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 /> | |
create | insert | id, cache_variable | 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 /> | |
update | update | id, cache_variable_id, cache_variable | 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 /> | |
delete | delete | id, cache_variable_id | 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 /> |
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
- list
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
;
List 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 />
SELECT
*
FROM pagerduty.event_orchestrations.cache_variables
WHERE id = '{{ id }}' -- required
;
INSERT examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: cache_variables
props:
- name: id
value: "{{ id }}"
description: Required parameter for the cache_variables resource.
- name: cache_variable
value: "{{ cache_variable }}"
UPDATE examples
- update
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
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
;