Skip to main content

activities

Creates, updates, deletes, gets or lists an activities resource.

Overview

Nameactivities
TypeResource
Idgoogle.policyanalyzer.activities

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
activitiesarrayThe set of activities that match the filter included in the request.
nextPageTokenstringIf there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
queryselectfoldersId, locationsId, activityTypesIdfilter, pageSize, pageTokenQueries policy activities on Google Cloud resources.

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
activityTypesIdstring
foldersIdstring
locationsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Queries policy activities on Google Cloud resources.

SELECT
activities,
nextPageToken
FROM google.policyanalyzer.activities
WHERE foldersId = '{{ foldersId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND activityTypesId = '{{ activityTypesId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';