Skip to main content

reports

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

Overview

Namereports
TypeResource
Idgoogle.securityposture.reports

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. The name of the report, in the format organizations/{organization}/locations/global/reports/{report_id}.
createTimestring (google-datetime)Output only. The time at which the report was created.
iacValidationReportobjectOutput only. An infrastructure-as-code (IaC) validation report. (id: IaCValidationReport)
updateTimestring (google-datetime)Output only. The time at which the report was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorganizationsId, locationsId, reportsIdGets details for a Report.
listselectorganizationsId, locationsIdpageSize, pageToken, filterLists every Report in a given organization and location.

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
locationsIdstring
organizationsIdstring
reportsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details for a Report.

SELECT
name,
createTime,
iacValidationReport,
updateTime
FROM google.securityposture.reports
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND reportsId = '{{ reportsId }}' -- required;