- [HTTP request](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#body.request_body)
- [Response body](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#body.ListExecutionResultsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#body.aspect)
- [ExecutionResult](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ExecutionResult)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ExecutionResult.SCHEMA_REPRESENTATION)
- [Resource](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Resource)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Resource.SCHEMA_REPRESENTATION)
- [ViolationDetails](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ViolationDetails)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ViolationDetails.SCHEMA_REPRESENTATION)
- [RuleOutput](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#RuleOutput)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#RuleOutput.SCHEMA_REPRESENTATION)
- [Command](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Command)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Command.SCHEMA_REPRESENTATION)
- [AgentCommand](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#AgentCommand)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#AgentCommand.SCHEMA_REPRESENTATION)
- [ShellCommand](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ShellCommand)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ShellCommand.SCHEMA_REPRESENTATION)
- [Type](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Type)
- [Try it!](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#try-it)

Lists the result of a single evaluation.

### HTTP request

`GET https://workloadmanager.googleapis.com/v1/{parent=projects/*/locations/*/evaluations/*/executions/*}/results`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The execution results. Format: {parent}/evaluations/\*/executions/\*/results. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
| `pageToken` | `string` A token identifying a page of results the server should return. |
| `filter` | `string` Filtering results. |

### Request body

The request body must be empty.

### Response body

Response message for the results.list RPC.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "executionResults": [ { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ExecutionResult`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `executionResults[]` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ExecutionResult`)`` The versions from the specified publisher. |
| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

## ExecutionResult

The result of an execution.

| JSON representation |
|---|
| ``` { "violationMessage": string, "severity": string, "rule": string, "documentationUrl": string, "resource": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Resource`) }, "violationDetails": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ViolationDetails`) }, "commands": [ { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Command`) } ], "type": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Type`) } ``` |

| Fields ||
|---|---|
| `violationMessage` | `string` The violation message of an execution. |
| `severity` | `string` The severity of violation. |
| `rule` | `string` The rule that is violated in an evaluation. |
| `documentationUrl` | `string` The URL for the documentation of the rule. |
| `resource` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Resource`)`` The resource that violates the rule. |
| `violationDetails` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ViolationDetails`)`` The details of violation in an evaluation result. |
| `commands[]` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Command`)`` The commands to remediate the violation. |
| `type` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#Type`)`` Execution result type of the scanned resource. |

## Resource

Resource in execution result.

| JSON representation |
|---|
| ``` { "type": string, "name": string, "serviceAccount": string } ``` |

| Fields ||
|---|---|
| `type` | `string` The type of resource. |
| `name` | `string` The name of the resource. |
| `serviceAccount` | `string` The service account associated with the resource. |

## ViolationDetails

The violation in an evaluation result.

| JSON representation |
|---|
| ``` { "asset": string, "serviceAccount": string, "observed": { string: string, ... }, "ruleOutput": [ { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#RuleOutput`) } ] } ``` |

| Fields ||
|---|---|
| `asset` | `string` The name of the asset. |
| `serviceAccount` | `string` The service account associated with the resource. |
| `observed` | `map (key: string, value: string)` Details of the violation. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `ruleOutput[]` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#RuleOutput`)`` Output only. The rule output of the violation. |

## RuleOutput

The rule output of the violation.

| JSON representation |
|---|
| ``` { "details": { string: string, ... }, "message": string } ``` |

| Fields ||
|---|---|
| `details` | `map (key: string, value: string)` Output only. Violation details generated by rule. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `message` | `string` Output only. The message generated by rule. |

## Command

Command specifies the type of command to execute.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "agentCommand": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#AgentCommand`) }, "shellCommand": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ShellCommand`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The type of command. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `agentCommand` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#AgentCommand`)`` AgentCommand specifies a one-time executable program for the agent to run. |
| `shellCommand` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations.executions.results/list#ShellCommand`)`` ShellCommand is invoked via the agent's command line executor. |
| End of mutually exclusive fields. ||

## AgentCommand

An AgentCommand specifies a one-time executable program for the agent to run.

| JSON representation |
|---|
| ``` { "command": string, "parameters": { string: string, ... } } ``` |

| Fields ||
|---|---|
| `command` | `string` The name of the agent one-time executable that will be invoked. |
| `parameters` | `map (key: string, value: string)` A map of key/value pairs that can be used to specify additional one-time executable settings. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## ShellCommand

A ShellCommand is invoked via the agent's command line executor.

| JSON representation |
|---|
| ``` { "command": string, "args": string, "timeoutSeconds": integer } ``` |

| Fields ||
|---|---|
| `command` | `string` The name of the command to be executed. |
| `args` | `string` Arguments to be passed to the command. |
| `timeoutSeconds` | `integer` Optional. If not specified, the default timeout is 60 seconds. |

## Type

Enum of execution result type.

| Enums ||
|---|---|
| `TYPE_UNSPECIFIED` | Unknown state. |
| `TYPE_PASSED` | Resource successfully passed the rule. |
| `TYPE_VIOLATED` | Resource violated the rule. |