replays
Creates, updates, deletes, gets or lists a replays
resource.
Overview
Name | replays |
Type | Resource |
Id | google.policysimulator.replays |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the Replay , which has the following format: `{projects |
config | object | The configuration used for a Replay. |
resultsSummary | object | Summary statistics about the replayed log entries. |
state | string | Output only. The current state of the Replay . |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
folders_locations_replays_get | SELECT | foldersId, locationsId, replaysId | Gets the specified Replay. Each Replay is available for at least 7 days. |
organizations_locations_replays_get | SELECT | locationsId, organizationsId, replaysId | Gets the specified Replay. Each Replay is available for at least 7 days. |
projects_locations_replays_get | SELECT | locationsId, projectsId, replaysId | Gets the specified Replay. Each Replay is available for at least 7 days. |
folders_locations_replays_create | INSERT | foldersId, locationsId | Creates and starts a Replay using the given ReplayConfig. |
organizations_locations_replays_create | INSERT | locationsId, organizationsId | Creates and starts a Replay using the given ReplayConfig. |
projects_locations_replays_create | INSERT | locationsId, projectsId | Creates and starts a Replay using the given ReplayConfig. |
SELECT
examples
Gets the specified Replay. Each Replay
is available for at least 7 days.
SELECT
name,
config,
resultsSummary,
state
FROM google.policysimulator.replays
WHERE foldersId = '{{ foldersId }}'
AND locationsId = '{{ locationsId }}'
AND replaysId = '{{ replaysId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new replays
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.policysimulator.replays (
foldersId,
locationsId,
config
)
SELECT
'{{ foldersId }}',
'{{ locationsId }}',
'{{ config }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: state
value: string
- name: config
value:
- name: policyOverlay
value: object
- name: logSource
value: string
- name: resultsSummary
value:
- name: errorCount
value: integer
- name: unchangedCount
value: integer
- name: logCount
value: integer
- name: oldestDate
value:
- name: month
value: integer
- name: year
value: integer
- name: day
value: integer
- name: differenceCount
value: integer