| Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Версия API: 1.8 и выше Метод: Ресурс: Описание: Метод возвращает вердикт события по ID документа:
Кроме того, вывод метода содержит поля:
Параметры:
Пример:
Для быстрого получения вердиктов по событиям рекомендуется делать запрос сразу по нескольким
Отслеживание вердикта по документуЕсли требуется нужно проверить набор файлов из внешней системы и, и при условии срабатывания политик и на основании решения пользователя по событию, предпринять какие-либо действия, то необходимо:
Отправка файлов для проверки в ТМВ системе сохраняется информация о ходе проверки файлов. Она имеет следующую структуру:
Отправка файла осуществляется путем выполнения запроса PushAPI:
Данную операцию необходимо нужно повторить для каждого файла и сохранить все полученные GUID. Они будут использоваться далее для отслеживания состояния анализа и изменения решения пользователя. Получение событий из ТМЭто действие необходимо нужно для того, чтобы получить информацию о сработавших политиках и вынесенном вердикте по событию в ТМ по результатам анализа содержимого файлов. Помимо этого, на данном этапе требуется получить идентификаторы событий Для этого необходимо выполнить запрос Public API вида. Он может иметь следующий вид:
Где Результатом данного запроса будет массив, элементами которого являются события ТМ. Сопоставляя На обработку событий в ТМ может потребоваться некоторое время, поэтому возможно, что в результат выполнения API-запроса попадет информация не обо всех событиях, Отслеживание статуса событияДля отслеживания изменения пользовательского решения рекомендуется периодически выполнять запросы на получение аудита по событиям, где было изменено решение пользователя. Запрос может иметь следующий вид:
Где |
| Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
API Version: 1.8 and later Method: Resource: Description: The method returns an event verdict based on the document ID:
Besides, the method's output includes the following fields:
Parameters:
Example:
To get event verdicts fast, we recommend making a query for several
Tracking the verdict through the documentIf you need to check a set of files of from an externalsystem, and on condition that a policy is triggered when a user verdict is changed, you need to take actions, then and take some actions when thepolicies are triggeredandthe user has made a decisionon the event,then you need to:
Sending files to TM for checkingThe system stores the information about the process of file checking. The information It has the following structure:
The file is sent via a PushAPI query:
The operation is to be repeated You need to repeat the operation for each file and all GUID are to be storedsave all the received GUIDs. They are to be used to track the analysis status and to change the user verdictdecision. Getting events from TMThe This action is required to get the information about triggered policies and the verdict made for the TM event after the analysis of the file content. Furthermore, the step requires receiving the event identifiers For this, you need to make a Public API query as follows:
For this, you need to complete Public API query as follows: Wherewhere The result of the query is an array which elements are the consisting of TM events. By matching the A certain amount of time is needed to process events in TM. So, it is possible , that the result of the API query does not contain the information about all the events for which Tracking event statusTo track the changes in user verdict, it is recommended to complete decision, we recommend periodically making audit queries for audit of events for which where the verdict decision was changed. The query can be may look like this:
Where where |