You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre>Queries policy activities on Google Cloud resources.
95
+
96
+
Args:
97
+
parent: string, Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/ (required)
98
+
filter: string, Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - `activities.full_resource_name {=} [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - `activities.full_resource_name {=} [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full resource name of the service account key.
99
+
pageSize: integer, Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
100
+
pageToken: string, Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
101
+
x__xgafv: string, V1 error format.
102
+
Allowed values
103
+
1 - v1 error format
104
+
2 - v2 error format
105
+
106
+
Returns:
107
+
An object of the form:
108
+
109
+
{ # Response to the `QueryActivity` method.
110
+
"activities": [ # The set of activities that match the filter included in the request.
111
+
{ # Represents Activity on a GCP resource over specific observation period.
112
+
"activity": { # A struct of custom fields to explain the activity.
113
+
"a_key": "", # Properties of the object.
114
+
},
115
+
"activityType": "A String", # The type of the activity.
116
+
"fullResourceName": "A String", # 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.
117
+
"observationPeriod": { # Represents data observation period. # The data observation period to build the activity.
118
+
"endTime": "A String", # The observation end time. The time in this timestamp is always `07:00:00Z`.
119
+
"startTime": "A String", # The observation start time. The time in this timestamp is always `07:00:00Z`.
120
+
},
121
+
},
122
+
],
123
+
"nextPageToken": "A String", # If 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`.
0 commit comments