Method: projects.groups.members.list

Lists the monitored resources that are members of a group.

HTTP request

GET https://monitoring.googleapis.com/v3/{name}/members

Path parameters

Parameters
name

string

The group whose members are listed. The format is "projects/{project_id_or_number}/groups/{groupId}".

Query parameters

Parameters
pageSize

number

A positive number that is the maximum number of results to return.

pageToken

string

If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.

filter

string

An optional list filter describing the members to be returned. The filter may reference the type, labels, and metadata of monitored resources that comprise the group. For example, to return only resources representing Compute Engine VM instances, use this filter:

resource.type = "gce_instance"

interval

object(TimeInterval)

An optional time interval for which results should be returned. Only members that were part of the group during the specified interval are included in the response. If no interval is provided then the group membership over the last minute is returned.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

The members.list response.

JSON representation
{
  "members": [
    {
      object(MonitoredResource)
    }
  ],
  "nextPageToken": string,
  "totalSize": number,
}
Fields
members[]

object(MonitoredResource)

A set of monitored resources in the group.

nextPageToken

string

If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.

totalSize

number

The total number of elements matching this request.

Authorization

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring
  • https://www.googleapis.com/auth/monitoring.read

For more information, see the Auth Guide.

Send feedback about...

Stackdriver Monitoring