Identity and Access Management API, gRPC: RoleService.List
Retrieves the list of Role resources.
gRPC request
rpc List (ListRolesRequest) returns (ListRolesResponse)
ListRolesRequest
{
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
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"
}
],
"next_page_token": "string"
}
Field |
Description |
roles[] |
List of Role resources. |
next_page_token |
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. |