Skip to main content

results

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

Overview

Nameresults
TypeResource
Idgoogle.policysimulator.results

Fields

NameDatatypeDescription
namestringThe resource name of the ReplayResult, in the following format: `{projects
accessTupleobjectInformation about the principal, resource, and permission to check.
diffobjectThe difference between the results of evaluating an access tuple under the current (baseline) policies and under the proposed (simulated) policies. This difference explains how a principal's access could change if the proposed policies were applied.
errorobjectThe Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.
lastSeenDateobjectRepresents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: A full date, with non-zero year, month, and day values. A month and day, with a zero year (for example, an anniversary). A year on its own, with a zero month and a zero day. A year and month, with a zero day (for example, a credit card expiration date). Related types: google.type.TimeOfDay google.type.DateTime * google.protobuf.Timestamp
parentstringThe Replay that the access tuple was included in.

Methods

NameAccessible byRequired ParamsDescription
folders_locations_replays_results_listSELECTfoldersId, locationsId, replaysIdLists the results of running a Replay.
organizations_locations_replays_results_listSELECTlocationsId, organizationsId, replaysIdLists the results of running a Replay.
projects_locations_replays_results_listSELECTlocationsId, projectsId, replaysIdLists the results of running a Replay.

SELECT examples

Lists the results of running a Replay.

SELECT
name,
accessTuple,
diff,
error,
lastSeenDate,
parent
FROM google.policysimulator.results
WHERE foldersId = '{{ foldersId }}'
AND locationsId = '{{ locationsId }}'
AND replaysId = '{{ replaysId }}';