Метод listAccessBindings

Возвращает список привязок прав доступа к указанному каталогу.

HTTP-запрос

GET https://resource-manager.api.cloud.yandex.net/resource-manager/v1/folders/{resourceId}:listAccessBindings

Path-параметры

Параметр Описание
resourceId Обязательное поле. ID of the resource to list access bindings for. To get the resource ID, use a corresponding List request. For example, use the list request to get the Cloud resource ID. Максимальная длина строки в символах — 50.

Query-параметры

Параметр Описание
pageSize The maximum number of results per page that should be returned. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Default value: 100. Максимальное значение — 1000.
pageToken Page token. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. Максимальная длина строки в символах — 100.

Ответ

HTTP Code: 200 - OK

{
  "accessBindings": [
    {
      "roleId": "string",
      "subject": {
        "id": "string",
        "type": "string"
      }
    }
  ],
  "nextPageToken": "string"
}
Поле Описание
accessBindings[] object

List of access bindings for the specified resource.

accessBindings[].
roleId
string

ID of the Role that is assigned to the subject.

Максимальная длина строки в символах — 50.

accessBindings[].
subject
object

Обязательное поле. Identity for which access binding is being created. It can represent an account with a unique ID or several accounts with a system identifier.

accessBindings[].
subject.
id
string

ID of the subject.

It can contain one of the following values:

  • allAuthenticatedUsers: A special system identifier that represents anyone who is authenticated. It can be used only if the type is system.

  • <cloud generated id>: An identifier that represents a user account. It can be used only if the type is userAccount or serviceAccount.

Максимальная длина строки в символах — 50.

accessBindings[].
subject.
type
string

Type of the subject.

It can contain one of the following values:

  • system: System group. This type represents several accounts with a common system identifier.
  • userAccount: An user account (for example, "alice.the.girl@yandex.ru"). This type represents the UserAccount resource.
  • serviceAccount: A service account. This type represents the ServiceAccount resource.

For more information, see Subject to which the role is assigned.

nextPageToken string

This token allows you to get the next page of results for list requests. If the number of results is larger than pageSize, use the nextPageToken as the value for the pageToken query parameter in the next list request. Each subsequent list request will have its own nextPageToken to continue paging through the results.