Skip to main content

results

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

Overview

Nameresults
TypeResource
Idgoogle.policysimulator.results

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe resource name of the ReplayResult, in the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay. Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234
accessTupleobjectThe access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt. (id: GoogleCloudPolicysimulatorV1AccessTuple)
diffobjectThe difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies. This field is only included for access tuples that were successfully replayed and had different results under the current policies and the proposed policies. (id: GoogleCloudPolicysimulatorV1ReplayDiff)
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. (id: GoogleRpcStatus)
lastSeenDateobjectThe latest date this access tuple was seen in the logs. (id: GoogleTypeDate)
parentstringThe Replay that the access tuple was included in.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_replays_results_listselectprojectsId, locationsId, replaysIdpageSize, pageTokenLists the results of running a Replay.
folders_locations_replays_results_listselectfoldersId, locationsId, replaysIdpageSize, pageTokenLists the results of running a Replay.
organizations_locations_replays_results_listselectorganizationsId, locationsId, replaysIdpageSize, pageTokenLists the results of running a Replay.

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
foldersIdstring
locationsIdstring
organizationsIdstring
projectsIdstring
replaysIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists the results of running a Replay.

SELECT
name,
accessTuple,
diff,
error,
lastSeenDate,
parent
FROM google.policysimulator.results
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND replaysId = '{{ replaysId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';