Cloud Organization API, gRPC: GroupService.List
Retrieves the list of group resources.
gRPC request
rpc List (ListGroupsRequest) returns (ListGroupsResponse)
ListGroupsRequest
{
"organization_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
organization_id |
string Required field. ID of the organization to list groups in. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. Set |
filter |
string A filter expression that filters resources listed in the response.
|
ListGroupsResponse
{
"groups": [
{
"id": "string",
"organization_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string"
}
],
"next_page_token": "string"
}
Field |
Description |
groups[] |
List of Group resources. |
next_page_token |
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. |
organization_id |
string ID of the organization that the group belongs to. |
created_at |
Creation timestamp. |
name |
string Name of the group. |
description |
string Description of the group. |