reports
Creates, updates, deletes, gets or lists a reports resource.
Overview
| Name | reports |
| Type | Resource |
| Id | google.securityposture.reports |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Required. The name of the report, in the format organizations/{organization}/locations/global/reports/{report_id}. |
createTime | string (google-datetime) | Output only. The time at which the report was created. |
iacValidationReport | object | Output only. An infrastructure-as-code (IaC) validation report. (id: IaCValidationReport) |
updateTime | string (google-datetime) | Output only. The time at which the report was last updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | Required. The name of the report, in the format organizations/{organization}/locations/global/reports/{report_id}. |
createTime | string (google-datetime) | Output only. The time at which the report was created. |
iacValidationReport | object | Output only. An infrastructure-as-code (IaC) validation report. (id: IaCValidationReport) |
updateTime | string (google-datetime) | Output only. The time at which the report was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | organizationsId, locationsId, reportsId | Gets details for a Report. | |
list | select | organizationsId, locationsId | pageSize, pageToken, filter | Lists 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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
organizationsId | string | |
reportsId | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
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
;
Lists every Report in a given organization and location.
SELECT
name,
createTime,
iacValidationReport,
updateTime
FROM google.securityposture.reports
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
;