Skip to main content

results

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

Overview

Nameresults
TypeResource
Idgoogle.workloadmanager.results

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
commandsarrayThe commands to remediate the violation.
documentationUrlstringThe URL for the documentation of the rule.
resourceobjectThe resource that violates the rule. (id: Resource)
rulestringThe rule that is violated in an evaluation.
severitystringThe severity of violation.
typestringExecution result type of the scanned resource
violationDetailsobjectThe details of violation in an evaluation result. (id: ViolationDetails)
violationMessagestringThe violation message of an execution.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, locationsId, evaluationsId, executionsIdpageSize, pageToken, filterLists the result of a single evaluation.

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
evaluationsIdstring
executionsIdstring
locationsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists the result of a single evaluation.

SELECT
commands,
documentationUrl,
resource,
rule,
severity,
type,
violationDetails,
violationMessage
FROM google.workloadmanager.results
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND evaluationsId = '{{ evaluationsId }}' -- required
AND executionsId = '{{ executionsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}';