results
Creates, updates, deletes, gets or lists a results
resource.
Overview
Name | results |
Type | Resource |
Id | google.policysimulator.results |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_replays_results_list
- folders_locations_replays_results_list
- organizations_locations_replays_results_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The 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 |
accessTuple | object | The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt. (id: GoogleCloudPolicysimulatorV1AccessTuple) |
diff | object | The 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) |
error | object | The 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) |
lastSeenDate | object | The latest date this access tuple was seen in the logs. (id: GoogleTypeDate) |
parent | string | The Replay that the access tuple was included in. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The 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 |
accessTuple | object | The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt. (id: GoogleCloudPolicysimulatorV1AccessTuple) |
diff | object | The 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) |
error | object | The 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) |
lastSeenDate | object | The latest date this access tuple was seen in the logs. (id: GoogleTypeDate) |
parent | string | The Replay that the access tuple was included in. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The 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 |
accessTuple | object | The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt. (id: GoogleCloudPolicysimulatorV1AccessTuple) |
diff | object | The 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) |
error | object | The 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) |
lastSeenDate | object | The latest date this access tuple was seen in the logs. (id: GoogleTypeDate) |
parent | string | The Replay that the access tuple was included in. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_replays_results_list | select | projectsId , locationsId , replaysId | pageSize , pageToken | Lists the results of running a Replay. |
folders_locations_replays_results_list | select | foldersId , locationsId , replaysId | pageSize , pageToken | Lists the results of running a Replay. |
organizations_locations_replays_results_list | select | organizationsId , locationsId , replaysId | pageSize , pageToken | Lists 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.
Name | Datatype | Description |
---|---|---|
foldersId | string | |
locationsId | string | |
organizationsId | string | |
projectsId | string | |
replaysId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- projects_locations_replays_results_list
- folders_locations_replays_results_list
- organizations_locations_replays_results_list
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 }}';
Lists the results of running a Replay.
SELECT
name,
accessTuple,
diff,
error,
lastSeenDate,
parent
FROM google.policysimulator.results
WHERE foldersId = '{{ foldersId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND replaysId = '{{ replaysId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists the results of running a Replay.
SELECT
name,
accessTuple,
diff,
error,
lastSeenDate,
parent
FROM google.policysimulator.results
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND replaysId = '{{ replaysId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';