Skip to main content

scanned_resources

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

Overview

Namescanned_resources
TypeResource
Idgoogle.workloadmanager.scanned_resources

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
resourcestringresource name
typestringresource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, locationsId, evaluationsId, executionsIdrule, pageSize, pageToken, filter, orderByList all scanned resources for a single Execution.

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
orderBystring
pageSizeinteger (int32)
pageTokenstring
rulestring

SELECT examples

List all scanned resources for a single Execution.

SELECT
resource,
type
FROM google.workloadmanager.scanned_resources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND evaluationsId = '{{ evaluationsId }}' -- required
AND executionsId = '{{ executionsId }}' -- required
AND rule = '{{ rule }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';