- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- ExecutionResult
- Resource
- ViolationDetails
- RuleOutput
- Command
- AgentCommand
- ShellCommand
- Type
- 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 syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The execution results. Format: {parent}/evaluations/*/executions/*/results |
Query parameters
| Parameters | |
|---|---|
pageSize |
Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
pageToken |
A token identifying a page of results the server should return. |
filter |
Filtering results |
Request body
The request body must be empty.
Response body
Message for response of list execution results
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"executionResults": [
{
object ( |
| Fields | |
|---|---|
executionResults[] |
The versions from the specified publisher. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
ExecutionResult
Message describing the result of an execution
| JSON representation |
|---|
{ "violationMessage": string, "severity": string, "rule": string, "documentationUrl": string, "resource": { object ( |
| Fields | |
|---|---|
violationMessage |
The violation message of an execution. |
severity |
The severity of violation. |
rule |
The rule that is violated in an evaluation. |
documentationUrl |
The URL for the documentation of the rule. |
resource |
The resource that violates the rule. |
violationDetails |
The details of violation in an evaluation result. |
commands[] |
The commands to remediate the violation. |
type |
Execution result type of the scanned resource |
Resource
Message represent resource in execution result
| JSON representation |
|---|
{ "type": string, "name": string, "serviceAccount": string } |
| Fields | |
|---|---|
type |
The type of resource. |
name |
The name of the resource. |
serviceAccount |
The service account associated with the resource. |
ViolationDetails
Message describing the violation in an evaluation result.
| JSON representation |
|---|
{
"asset": string,
"serviceAccount": string,
"observed": {
string: string,
...
},
"ruleOutput": [
{
object ( |
| Fields | |
|---|---|
asset |
The name of the asset. |
serviceAccount |
The service account associated with the resource. |
observed |
Details of the violation. An object containing a list of |
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 |
Output only. Violation details generated by rule. An object containing a list of |
message |
Output only. The message generated by rule. |
Command
- Command specifies the type of command to execute.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field command_type. The type of command. command_type can be only one of the following: |
|
agentCommand |
AgentCommand specifies a one-time executable program for the agent to run. |
shellCommand |
ShellCommand is invoked via the agent's command line executor. |
AgentCommand
* An AgentCommand specifies a one-time executable program for the agent to run.
| JSON representation |
|---|
{ "command": string, "parameters": { string: string, ... } } |
| Fields | |
|---|---|
command |
command is the name of the agent one-time executable that will be invoked. |
parameters |
parameters is a map of key/value pairs that can be used to specify additional one-time executable settings. An object containing a list of |
ShellCommand
- A ShellCommand is invoked via the agent's command line executor
| JSON representation |
|---|
{ "command": string, "args": string, "timeoutSeconds": integer } |
| Fields | |
|---|---|
command |
command is the name of the command to be executed. |
args |
args is a string of arguments to be passed to the command. |
timeoutSeconds |
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 |