Resource: Replay
A resource describing a Replay
, or simulation.
JSON representation |
---|
{ "name": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. The resource name of the
Example: |
state |
Output only. The current state of the |
config |
Required. The configuration used for the |
resultsSummary |
Output only. Summary statistics about the replayed log entries. |
State
The current state of the Replay
.
Enums | |
---|---|
STATE_UNSPECIFIED |
Default value. This value is unused. |
PENDING |
The Replay has not started yet. |
RUNNING |
The Replay is currently running. |
SUCCEEDED |
The Replay has successfully completed. |
FAILED |
The Replay has finished with an error. |
ReplayConfig
The configuration used for a Replay
.
JSON representation |
---|
{ "policyOverlay": { string: { object ( |
Fields | |
---|---|
policyOverlay |
A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example, Values are Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay. An object containing a list of |
logSource |
The logs to use as input for the |
LogSource
The source of the logs to use for a Replay
.
Enums | |
---|---|
LOG_SOURCE_UNSPECIFIED |
An unspecified log source. If the log source is unspecified, the Replay defaults to using RECENT_ACCESSES . |
RECENT_ACCESSES |
All access logs from the last 90 days. These logs may not include logs from the most recent 7 days. |
ResultsSummary
Summary statistics about the replayed log entries.
JSON representation |
---|
{ "logCount": integer, "unchangedCount": integer, "differenceCount": integer, "errorCount": integer, "oldestDate": { object ( |
Fields | |
---|---|
logCount |
The total number of log entries replayed. |
unchangedCount |
The number of replayed log entries with no difference between baseline and simulated policies. |
differenceCount |
The number of replayed log entries with a difference between baseline and simulated policies. |
errorCount |
The number of log entries that could not be replayed. |
oldestDate |
The date of the oldest log entry replayed. |
newestDate |
The date of the newest log entry replayed. |
Methods |
|
---|---|
|
Creates and starts a Replay using the given ReplayConfig . |
|
Gets the specified Replay . |
|
Lists each Replay in a project, folder, or organization. |