Cloud Organization API, gRPC: GroupService.List
Retrieves the list of group resources.
gRPC request
rpc List (ListGroupsRequest) returns (ListGroupsResponse)
ListGroupsRequest
{
"organizationId": "string",
"pageSize": "int64",
"pageToken": "string",
"filter": "string"
}
Field |
Description |
organizationId |
string Required field. ID of the organization to list groups in. |
pageSize |
int64 The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. Set |
filter |
string A filter expression that filters resources listed in the response.
|
ListGroupsResponse
{
"groups": [
{
"id": "string",
"organizationId": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
groups[] |
List of Group resources. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
Group
A Group resource.
For more information, see Groups.
Field |
Description |
id |
string ID of the group. |
organizationId |
string ID of the organization that the group belongs to. |
createdAt |
Creation timestamp. |
name |
string Name of the group. |
description |
string Description of the group. |