---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.ru/dev/api360/doc/ru/ref/AuditLogService/AuditLogService_Disk.md
  - href: ru/ref/AuditLogService/AuditLogService_Disk.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/api360/doc/ru/llms.txt

<div class="openapi">

# Получить аудит-лог Диска

<!-- markdownlint-disable-file -->

Возвращает список событий в аудит-логе Диска организации.

{% note info %}

Чтобы выполнить запрос, приложению требуется разрешение на чтение событий аудит-лога Диска.
Убедитесь, что вы включили его при [настройке приложения](https://yandex.ru/dev/api360/doc/ru/access.md) на OAuth-сервере Яндекса.

{% endnote %}

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://api360.yandex.net/security/v1/org/{orgId}/audit_log/disk
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_orgId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Идентификатор организации.
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_pageSize_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Количество событий на странице. Максимальное значение — `100`.
{.table-cell}
||
||

_afterDate_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата и время начала периода выборки в формате ISO 8601, например `2022-12-31T23:59:59+03:00` или `2022-12-31T12:00:00Z`.

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_beforeDate_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата и время окончания периода выборки в формате ISO 8601, например `2022-12-31T23:59:59+03:00` или `2022-12-31T12:00:00Z`. Значение по умолчанию — текущее время.

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_excludeUids_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;uint64&gt;[]

Идентификаторы пользователей, действия которых должны быть исключены из списка событий.

Чтобы указать несколько человек, задайте их идентификаторы отдельными параметрами, например `excludeUids={uid1}&excludeUids={uid2}`.

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_includeUids_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;uint64&gt;[]

Идентификаторы пользователей, действия которых должны быть включены в список событий.

Чтобы указать несколько человек, задайте их идентификаторы отдельными параметрами, например `includeUids={uid1}&includeUids={uid2}`.

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_pageToken_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Токен постраничной навигации.

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

Запрос успешно выполнен.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "events": [
    {
      "eventType": "example",
      "date": "2025-01-01T00:00:00Z",
      "orgId": 0,
      "userUid": "example",
      "userLogin": "example",
      "userName": "example",
      "ownerUid": "example",
      "ownerLogin": "example",
      "ownerName": "example",
      "resourceFileId": "example",
      "path": "example",
      "size": "example",
      "lastModificationDate": "2025-01-01T00:00:00Z",
      "rights": "example",
      "requestId": "example",
      "uniqId": "example",
      "clientIp": "example"
    }
  ],
  "nextPageToken": "example"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_events_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [v1DiskEvent](#entity-v1DiskEvent)[]

Список событий.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "eventType": "example",
    "date": "2025-01-01T00:00:00Z",
    "orgId": 0,
    "userUid": "example",
    "userLogin": "example",
    "userName": "example",
    "ownerUid": "example",
    "ownerLogin": "example",
    "ownerName": "example",
    "resourceFileId": "example",
    "path": "example",
    "size": "example",
    "lastModificationDate": "2025-01-01T00:00:00Z",
    "rights": "example",
    "requestId": "example",
    "uniqId": "example",
    "clientIp": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_nextPageToken_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Токен для получения следующей страницы постраничной навигации.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### v1DiskEvent {#entity-v1DiskEvent}

#|
|| **Name** | **Description** ||
||

_date_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата и время события по UTC в формате ISO 8601: `YYYY-MM-DDThh:mm:ssZ`.

_Example:_{.json-schema-reset .json-schema-example} `2025-01-01T00:00:00Z`
{.table-cell}
||
||

_eventType_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Тип события.
Возможные значения:
- `fs-copy` — копирование на свой Диск;
- `fs-mkdir` — создание папки;
- `fs-move` — перемещение;
- `fs-set-public` — публикация файла по ссылке;
- `fs-store` — загрузка файла;
- `fs-trash-append` — перенос в Корзину;
- `fs-trash-drop` — удаление из Корзины;
- `fs-trash-drop-all` — очистка Корзины;
- `share-activate-invite` — принятие приглашения;
- `share-change-rights` — изменение уровня общего доступа;
- `share-change-invite-rights` — изменение уровня доступа для приглашения;
- `share-create-group` — общий доступ к папке;
- `share-invite-user` — приглашение в группу;
- `fs-rm` — удаление без переноса в Корзину (с использованием протокола WebDAV).

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_orgId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Идентификатор организации.
{.table-cell}
||
||

_requestId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Идентификатор запроса в системе. Может быть неуникальным, например при групповых операциях.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_uniqId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор события.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_userLogin_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Логин пользователя.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_userName_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Имя пользователя.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_userUid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;uint64&gt;

Идентификатор пользователя.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_clientIp_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

IP клиента.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_lastModificationDate_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата и время последней модификации файла или папки по UTC в формате ISO 8601: `YYYY-MM-DDThh:mm:ssZ`. Отсутствие даты у некоторых событий обозначается «нулевым» временем: `1970-01-01T00:00:00Z`.

_Example:_{.json-schema-reset .json-schema-example} `2025-01-01T00:00:00Z`
{.table-cell}
||
||

_ownerLogin_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Логин владельца файла или папки. Может быть пустым, например при очистке Корзины.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_ownerName_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Имя владельца файла или папки. Может быть пустым, например при очистке Корзины.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_ownerUid_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;uint64&gt;

Идентификатор владельца файла или папки. Может быть пустым, например при очистке Корзины.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_path_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Путь расположения файла или папки.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_resourceFileId_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Идентификатор файла или папки. Может быть пустым, например при очистке Корзины.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_rights_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Права доступа к папке при предоставлении доступа. Значение может быть пустым.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_size_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;uint64&gt;

Размер файла в байтах. Может быть равен нулю, например при создании папки или очистке Корзины.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "eventType": "example",
  "date": "2025-01-01T00:00:00Z",
  "orgId": 0,
  "userUid": "example",
  "userLogin": "example",
  "userName": "example",
  "ownerUid": "example",
  "ownerLogin": "example",
  "ownerName": "example",
  "resourceFileId": "example",
  "path": "example",
  "size": "example",
  "lastModificationDate": "2025-01-01T00:00:00Z",
  "rights": "example",
  "requestId": "example",
  "uniqId": "example",
  "clientIp": "example"
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Некорректный запрос.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": 0,
  "message": "example",
  "details": [
    {
      "@type": "example"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Код ошибки.
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [protobufAny](#entity-protobufAny)[]

Дополнительные сведения об ошибке.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "@type": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### protobufAny {#entity-protobufAny}

#|
|| **Name** | **Description** ||
||

_@type_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_[additional]_{.json-schema-reset .json-schema-additional-property}
{.table-cell}|
**Type**: unknown

_Example:_{.json-schema-reset .json-schema-example} `null`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "@type": "example"
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__401">

## 401 Unauthorized

Пользователь не авторизован.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": 0,
  "message": "example",
  "details": [
    {
      "@type": "example"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Код ошибки.
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [protobufAny](#entity-protobufAny)[]

Дополнительные сведения об ошибке.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "@type": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__403">

## 403 Forbidden

У пользователя или приложения нет прав на доступ к ресурсу, запрос отклонен.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": 0,
  "message": "example",
  "details": [
    {
      "@type": "example"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Код ошибки.
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [protobufAny](#entity-protobufAny)[]

Дополнительные сведения об ошибке.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "@type": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__404">

## 404 Not Found

Запрашиваемый ресурс не найден.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": 0,
  "message": "example",
  "details": [
    {
      "@type": "example"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Код ошибки.
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [protobufAny](#entity-protobufAny)[]

Дополнительные сведения об ошибке.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "@type": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__500">

## 500 Internal Server Error

Внутренняя ошибка сервиса. Попробуйте повторно отправить запрос через некоторое время.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": 0,
  "message": "example",
  "details": [
    {
      "@type": "example"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Код ошибки.
{.table-cell}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [protobufAny](#entity-protobufAny)[]

Дополнительные сведения об ошибке.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "@type": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Описание ошибки.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.