Identity and Access Management API, gRPC: RoleService.List
Retrieves the list of Role resources.
gRPC request
rpc List (ListRolesRequest) returns (ListRolesResponse)
ListRolesRequest
{
"pageSize": "int64",
"pageToken": "string",
"filter": "string"
}
Field |
Description |
pageSize |
int64 The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters resources listed in the response. |
ListRolesResponse
{
"roles": [
{
"id": "string",
"description": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
roles[] |
List of Role resources. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
Role
A Role resource. For more information, see Roles.
Field |
Description |
id |
string ID of the role. |
description |
string Description of the role. 0-256 characters long. |