Identity and Access Management API, gRPC: AccessAnalyzerService.ListSubjectAccessBindings
Returns the list of access bindings for the specified subject in chosen organization.
gRPC request
rpc ListSubjectAccessBindings (ListSubjectAccessBindingsRequest) returns (ListSubjectAccessBindingsResponse)
ListSubjectAccessBindingsRequest
{
"subject_id": "string",
"organization_id": "string",
"page_size": "int64",
"page_token": "string"
}
|
Field |
Description |
|
subject_id |
string Required field. SubjectId to list access bindings for. |
|
organization_id |
string Required field. OrganizationId to search access bindings in. |
|
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 |
ListSubjectAccessBindingsResponse
{
"subject_access_bindings": [
{
"role_id": "string",
"resource": {
"id": "string",
"type": "string"
},
"subject_id": "string"
}
],
"next_page_token": "string"
}
|
Field |
Description |
|
subject_access_bindings[] |
List of access bindings for the specified subject. |
|
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
SubjectAccessBinding
|
Field |
Description |
|
role_id |
string Role assigned to the subject. |
|
resource |
Resource to which the access binding applies. |
|
subject_id |
string Identifier of the subject to which this role is granted. |
Resource
A Resource. For more information, see Resource.
|
Field |
Description |
|
id |
string Required field. ID of the resource. |
|
type |
string Required field. The type of the resource, e.g. resource-manager.folder, billing.account, compute.snapshot, etc. |