- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- IAM Permissions
- Activity
- ObservationPeriod
Queries policy activities on Google Cloud resources.
HTTP request
GET https://policyanalyzer.googleapis.com/v1/{parent=projects/*/locations/*/activityTypes/*}/activities:query
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The container resource on which to execute the request. Acceptable formats: LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/ |
Query parameters
Parameters | |
---|---|
filter |
Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are:
where For serviceAccountKeyLastAuthentication activities, supported filters are:
|
pageSize |
Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of |
pageToken |
Optional. If present, then retrieve the next batch of results from the preceding call to this method. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response to the activities.query
method.
JSON representation |
---|
{
"activities": [
{
object ( |
Fields | |
---|---|
activities[] |
The set of activities that match the filter included in the request. |
nextPageToken |
If there might be more results than those appearing in this response, then |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permissions on the parent
resource:
policyanalyzer.serviceAccountKeyLastAuthenticationActivities.query
policyanalyzer.serviceAccountLastAuthenticationActivities.query
For more information, see the IAM documentation.
Activity
JSON representation |
---|
{
"fullResourceName": string,
"activityType": string,
"observationPeriod": {
object ( |
Fields | |
---|---|
fullResourceName |
The full resource name that identifies the resource. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. |
activityType |
The type of the activity. |
observationPeriod |
The data observation period to build the activity. |
activity |
A struct of custom fields to explain the activity. |
ObservationPeriod
Represents data observation period.
JSON representation |
---|
{ "startTime": string, "endTime": string } |
Fields | |
---|---|
startTime |
The observation start time. The time in this timestamp is always A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
The observation end time. The time in this timestamp is always A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |