Identity and Access Management API, REST: AccessAnalyzer.ListSubjectAccessBindings
Returns the list of access bindings for the specified subject in chosen organization.
HTTP request
GET https://iam.api.yandexcloud.kz/iam/v1/listSubjectAccessBindings
Query parameters
|
Field |
Description |
|
subjectId |
string Required field. SubjectId to list access bindings for. |
|
organizationId |
string Required field. OrganizationId to search access bindings in. |
|
pageSize |
string (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 |
Response
HTTP Code: 200 - OK
{
"subjectAccessBindings": [
{
"roleId": "string",
"resource": {
"id": "string",
"type": "string"
},
"subjectId": "string"
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
subjectAccessBindings[] |
List of access bindings for the specified subject. |
|
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
SubjectAccessBinding
|
Field |
Description |
|
roleId |
string Role assigned to the subject. |
|
resource |
Resource to which the access binding applies. |
|
subjectId |
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. |