Skip to main content

service_cache_variables

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

Overview

Nameservice_cache_variables
TypeResource
Idpagerduty.event_orchestrations.service_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
getselectservice_id, cache_variable_idGet a Cache Variable for a Service 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: services.read<br />
listselectservice_idList Cache Variables for a Service 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: services.read<br />
createinsertservice_id, cache_variableCreate a Cache Variable for a Service 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: services.write<br />
updateupdateservice_id, cache_variable_id, cache_variableUpdate a Cache Variable for a Service 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: services.write<br />
deletedeleteservice_id, cache_variable_idDelete a Cache Variable for a Service 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: services.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.
service_idstringThe service ID

SELECT examples

Get a Cache Variable for a Service 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: services.read<br />

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

INSERT examples

Create a Cache Variable for a Service 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: services.write<br />

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

UPDATE examples

Update a Cache Variable for a Service 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: services.write<br />

UPDATE pagerduty.event_orchestrations.service_cache_variables
SET
cache_variable = '{{ cache_variable }}'
WHERE
service_id = '{{ service_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 Service 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: services.write<br />

DELETE FROM pagerduty.event_orchestrations.service_cache_variables
WHERE service_id = '{{ service_id }}' --required
AND cache_variable_id = '{{ cache_variable_id }}' --required
;