Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.4
Sv translation
languageru
Примечание
titleПримечание:

В API получения данных аудита могут появляться новые действия. При этом версия API может не меняться.

Описание: Список данных аудита, отсортированных по дате и времени зарегистрированного действия пользователя.

Метод:  GET

Ресурс: audit

Параметры:

  • filter - список фильтрации:
    • change_date[>] –  дата и время начала зарегистрированного действия пользователя в формате UNIX-timestamp и через точку microtime, например filter[change_date][>]=1591368000.123456
    • change_date[<] –  дата и время окончания зарегистрированного действия пользователя в формате UNIX-timestamp и через точку microtime, например filter[change_date][<]=1591368000.123456
    • change_date[>=] –  дата и время начала зарегистрированного действия пользователя в формате UNIX-timestamp и через точку microtime, например filter[change_date][>=]=1591368000.123456 
    • change_date[<=] –  дата и время окончания зарегистрированного действия пользователя в формате UNIX-timestamp и через точку microtime, например filter[change_date][<=]=1591368000.123456
    • entity_type[] –  тип сущности, над которой было выполнено действие (возможно несколько значений);
  • without[] – получить данные без дополнительных атрибутов:
    • property_changes –  данные расширенного аудита. 
  • sort[] –  параметр для сортировки:
    • change_date — сортировать по дате изменения asc.
  • start –  с какой позиции начать отдавать данные аудита (по умолчанию 0)
  • limit –  сколько комплектов данных аудита отдавать (по умолчанию 100, не может быть больше 1000)
Блок кода
titleOpenAPI-схема отдачи данных аудита
schemas:
    auditCommon:
      type: object
      additionalProperties: false
      required: [AUDIT_LOG_ID, USER_ID, CHANGE_DATE, OPERATION, ENTITY_TYPE, ENTITY_ID, ENTITY_DISPLAY_NAME]
      properties: &common
        AUDIT_LOG_ID:
          type: integer
          description: Audit log id
        USER_ID:
          type: integer
          nullable: true
          description: |
            User id who performed the action (See /xapi/user).
            USER_ID may be null on login or if changes make by plugin.
        CHANGER_NAME:
          type: string
          nullable: true
          description: |
            User name or Plugin name who performed the action.
            May be null on login.
        CHANGE_DATE:
          type: string
          description: Date and time of the registered user action with format "Y-m-d H:i:s.u" in UTC
          example: "2020-05-14 13:53:52.926560"
        OPERATION:
          type: string
          description: Operation type over which the action was performed. There may be values not from the enum.
          enum:
            - run
            - canceled
            - start
            - stop
            - restart
            - view
            - create
            - update
            - change
            - delete
            - delete_ref
            - delete_hash
            - copy
            - move
            - login_failure
            - bruteforce
            - login
            - logout
            - change_password
            - commit
            - rollback
            - draft
            - add
            - import
            - export
            - export_object
            - downloadcreate_widget
            - syncupdate_widget
            - decisiondelete_updatewidget
            - add_tagdownload
            - remove_tagsync
            - adddecision_roleupdate
            - removeadd_roletag
            - addremove_visibility_areatag
            - removeadd_visibility_arearole
            - loggingremove_role
            - apply_inboundadd_visibility_area
            - remove_visibility_area
            - logging
            - apply_inbound
            - xapi_decision_update
            - start_scan_job
            - apply_result_scan_job
            - update_job_schedule
            - create_log
            - plugin_register
            - plugin_update
            - privileges_update
            - privileges_create
            - notification
            - notification_template
            - notification_test
         ENTITY_TYPE:
   - upload_image
      type: string
     - delete_image
    description: Entity type over which the action was performed. There may be values not from the enum.
- create_contact
            - update_contact
    enum: *entryTypes
       - ENTITYdelete_ID:contact
          type: string  - compile_create
          nullable: true
  - compile_update
            description: |- create_template
            ID of the entity which the action was performed. May be GUID or integer as string- update_template
            - delete_template
            May by null for:- create_rule
            | OPERATION | ENTITY_TYPE |
 - update_rule
           | :--- | :--- |delete_rule
            | commit | Config |
- notification_test
        ENTITY_TYPE:
       | run | QueryReportRuntype: |string
          description: Entity |type syncover |which Adlibitumthe |
action was performed. There may be values not from the enum.
  | login | User |
    enum: *entryTypes
       | rollback | Config | ENTITY_ID:
          exampletype: "DBAF4F834F7647CBB297BC9DD17B77B100000000"string
        ENTITY_DISPLAY_NAME:
          typenullable: stringtrue
          nullabledescription: true|
          description: The nameID of the entity over which the action was carriedperformed. out
May be GUID or integer as string
    example: "Some name"
      May  PROPERTY_CHANGESby null for:
          type: object
  | OPERATION | ENTITY_TYPE |
    nullable: true
       | :--- | description:--- Null|
 in default Audit log events
    userLoginLogout:
   | commit | type:Config object|
      description:   For ENTITY_TYPE User and| OPERATIONrun login| orQueryReportRun logout|
      properties:
      | sync | <<:Adlibitum *common
|
            | login | User OPERATION:|
           type: string | rollback | Config |
          enumexample: [login, logout]"DBAF4F834F7647CBB297BC9DD17B77B100000000"
        ENTITY_TYPEDISPLAY_NAME:
          type: string
          enumnullable: [User]true
        PROPERTY_CHANGES:
          type: object  description: The name of the entity over which the action was carried out
          requiredexample: [request]"Some name"
          propertiesPROPERTY_CHANGES:
          type:  request:object
              required:nullable: true
          description: Null in default Audit log - hostnameevents
    userLoginLogout:
      type: object
     - ip
description: For ENTITY_TYPE User and OPERATION login or logout
        - resultproperties:
        <<: *common
       - loginOPERATION:
          type: string
    properties:
      enum: [login, logout]
        hostnameENTITY_TYPE:
                  type: string
          enum: [User]
        titlePROPERTY_CHANGES: Hostname
          type:  object
      description: Hostname from which authorizationnullable: passedtrue
          required: [request]
     ip:
     properties:
             typerequest: string
              required:
    title: Ip address
          - hostname
       description: Ip address from which authorization passed
   - ip
            result:
    - result
             type: string
  - login
               titleproperties: Result
                  descriptionhostname: Result
                  enumtype: string
                    - login_failuretitle: Hostname
                  description: Hostname -from login
which authorization passed
                ip:
  - logout
                logintype: string
                  typetitle: stringIp address
                  title: User logindescription: Ip address from which authorization passed
                result:
  description:  Entered user login in input
    policyPropertyChanges:
      type: objectstring
      description:    For ENTITY_TYPE Policy
      nullabletitle: trueResult
          properties:
        <<description: *commonResult
        ENTITY_TYPE:
          typeenum:
  string
          enum: [Policy]
       - PROPERTYlogin_CHANGES:
failure
               type: object

Пример:

Блок кода
titleЗапрос
curl -X GET "https://qa-2944.infowatch.ru/xapi/audit?sort[CHANGE_DATE]=asc&filter[ENTITY_TYPE][]=Adlibitum&filter[ENTITY_TYPE][]=Audit&filter[ENTITY_TYPE][]=Config&filter[ENTITY_TYPE][]=Perimeter&filter[ENTITY_TYPE][]=Policy&start=0&limit=5" -H "accept: application/json" -H "X-Enable-OpenAPI: 1"
Блок кода
titleОтвет
{
  "data": [
    {
     - login
                    "AUDIT_LOG_ID": 0,
- logout
        "USER_ID": 0,
        "CHANGER_NAME": "string",
login:
          "CHANGE_DATE": "2020-05-14 13:53:52.926560",
      "OPERATION"type: "run",string
      "ENTITY_TYPE": "Adlibitum",
      "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
    title:  "ENTITY_DISPLAY_NAME": "Some name",
User login
                  "PROPERTY_CHANGES"description: {}
Entered user login in },input
    {userBruteForce:
      "AUDIT_LOG_ID"type: 0,object
      "USER_ID"description: 0,
      "CHANGER_NAME": "string",For ENTITY_TYPE User and OPERATION login with bruteforce
      "CHANGE_DATE"properties:
 "2020-05-14 13:53:52.926560",
      "OPERATION"<<: "login",*common
      "ENTITY_TYPE": "User",  OPERATION:
      "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
   type: string
  "ENTITY_DISPLAY_NAME": "Some name",
      "PROPERTY_CHANGES": {enum: [ bruteforce ]
        "request": {ENTITY_TYPE:
          "hostname"type: "string",
          "ip"enum: "string",
[ User ]
        "result": "login_failure",PROPERTY_CHANGES:
          "login"type: "string"object
        }
      }nullable: true
    },
    {
  required: [   "AUDIT_LOG_ID": 0,login ]
      "USER_ID": 0,
   properties:
   "CHANGER_NAME": "string",
      "CHANGE_DATE": "2020-05-14 13:53:52.926560", request:
      "OPERATION": "run",
        "ENTITY_TYPE": "Policy",
required:
        "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
      "ENTITY_DISPLAY_NAME": "Some name", - login
      "PROPERTY_CHANGES": {
        "old": {
 - display_name
            "DISPLAY_NAME": "string",
  properties:
            "NOTE": "string",
   login:
       "STATUS": 0,
          "START_DATE"type: "string",
          "END_DATE": "string",
       title:   "DATA": {
   User login
         "ITEMS": [
        description: Entered user login in  {input
                "TYPE": "catalog",
display_name:
                  "ID"type: "string",
                  "NAME"title: "string"
User full name
                },
  description: User full name
    tagPropertyChanges:
     {
 type: object
      properties:
        "TYPE"<<: "fileformat",*common
        ENTITY_TYPE:
          "ID"type: "string",
          enum: [ Object ]
   "NAME": "string",
    OPERATION:
            "MIME_TYPE"type: "string",
          enum: [ add_tag, remove_tag ]
  "ENCRYPTED": 0,
     PROPERTY_CHANGES:
           "MERGED"type: 0,object
          properties:
      "MAX": 0,
      new:
              "MIN"$ref: 0,'#/components/schemas/TagDiffProperties'
                "MAX_TYPE": 0,old:
                "MIN_TYPE": 0$ref: '#/components/schemas/TagDiffProperties'
    TagDiffProperties:
      type: object
   }
   properties:
        DISPLAY_NAME:
 ]
         type: }string
        },NOTE:
        "new"  type: {string
    userDesicionPropertyChanges:
      "DISPLAY_NAME"type: "string",object
          "NOTE": "string",properties:
          "STATUS"<<: 0,*common
          "START_DATE": "string",ENTITY_TYPE:
          "END_DATE"type: "string",
          "DATA"enum: {
[ Object ]
        OPERATION:
  "ITEMS": [
       type: string
      {
    enum: [ decision_update, xapi_decision_update ]
        "TYPE": "catalog",PROPERTY_CHANGES:
          type: object
     "ID": "string",
    properties:
            "NAME"new:
 "string"
             type: },object
              {properties:
                "TYPE": "fileformat",
USER_DECISION:
                  "ID": "string",$ref: '#/components/schemas/UserDecisionState'
                "NAME": "string",old:
                "MIME_TYPE"type: "string",object
                "ENCRYPTED": 0,properties:
                "MERGED": 0,
USER_DECISION:
                  "MAX"$ref: 0,'#/components/schemas/UserDecisionState'
    UserDecisionState:
      type: string
      "MIN"enum: 0,[ NotProcessed, NoViolation, Violation, AdditionalProcessingNeeded ]
    objectExportPropertyChanges:
      type: object
     "MAX_TYPE": 0,
 properties:
        <<: *common
        "MINENTITY_TYPE": 0
          type: string
   }
       enum: [   Object ]
        OPERATION:
   }
       type: },string
          "rule"enum: {
[ export_object ]
        "ENTITYPROPERTY_TYPE": "PolicyRule",CHANGES:
          "ENTITY_ID"type: "string",object
          "ENTITY_DISPLAY_NAME": "string"properties:
        }
    new:
  }
    }
  ],
  "meta": {
    "totalCount"type: 0,object
    "start": 0,
          properties:
                PARAMS:
                  "limit"type: 0object
    }
}
Sv translation
languageen

Description: List of audit data sorted by date and time of logged user actions.

Method:  GET

Resource: audit

Parameters:

  • filter - filter list:
    • change_date[>] –  start date and time of the logged user action. Are specified in UNIX timestamp format with microtime dot, for example, filter[change_date][>]=1591368000.123456
    • change_date[<] –  end date and time of the logged user action. Are specified in UNIX timestamp format with microtime dot, for example, filter[change_date][<]=1591368000.123456
    • change_date[>=] – start date and time of the logged user action. Are specified in UNIX timestamp format with microtime dot, for example, filter[change_date][>=]=1591368000.123456 
    • change_date[<=] –  end date and time of the logged user action. Are specified in UNIX timestamp format with microtime dot, for example, filter[change_date][<=]=1591368000.123456
    • entity_type[] –  the type of the entity to which the action applied (several values are possible)
  • without[] – get data without additional attributes
    • property_changes –  data of extended audit
  • sort[] –  parameter used for sorting 
    • change_date – sort by date of asc change
  • start –  a position from which audit data should be delivered (the default value is 0)
  • limit –  how many audit data sets should be delivered (the default value is 100, the value cannot be larger than 1000)
Блок кода
titleOpenAPI scheme for delivering audit data
 schemas:
    auditCommon              properties:
                    QUERY_ID:
                      type: integer
                      nullable: true
                    DISPLAY_NAME:
                      type: string
                    COMMENT:
                      type: string
                    FILTER:
                      anyOf:
                        - type: object
                        - type: array
                    SORT:
                      type: object
                    IS_ONE_REPORT:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    ONE_LOAD_REPORT:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    FORMAT:
                      type: string
                      enum: [ simple, full ]
                    TYPE:
                      type: object
                      properties:
                        one_report:
                          type: string
                          enum: [ docx, xls, xlsx, pdf ]
                        several_report:
                          type: string
                          enum: [ docx, pdf ]
                    IS_SEVERAL_REPORT:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    SEVERAL_LOAD_REPORT:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    LOAD_ATTACHMENT:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    KEEP_HIERARCHY:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    LOAD_SNIPPET:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    LOAD_EML:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    LOAD_DEBUG_OBJECT:
                      $ref: '#/components/schemas/BooleanAsInteger'
                    SCOPE:
                      oneOf:
                        - type: string
                          enum: [ all ]
                        - type: array
                          items:
                            type: integer
                    GROUPING:
                      type: array
                      items:
                        type: string
                        enum: [CaptureDate, Computer, Object, ObjectType, Person]
                    IS_REPORT_ARCHIVE:
                      $ref: '#/components/schemas/BooleanAsInteger'
    BooleanAsStringOrInteger:
      $ref: 'common.yaml#/components/schemas/BooleanAsStringOrInteger'
    BooleanAsInteger:
      $ref: 'common.yaml#/components/schemas/BooleanAsInteger'
    BooleanAsString:
      $ref: 'common.yaml#/components/schemas/BooleanAsString'
  

Пример:

Блок кода
titleЗапрос
curl -X GET "https://qa-2944.infowatch.ru/xapi/audit?sort[CHANGE_DATE]=asc&filter[ENTITY_TYPE][]=Adlibitum&filter[ENTITY_TYPE][]=Audit&filter[ENTITY_TYPE][]=Config&filter[ENTITY_TYPE][]=Perimeter&filter[ENTITY_TYPE][]=Policy&start=0&limit=5" -H "accept: application/json" -H "X-Enable-OpenAPI: 1"


Блок кода
titleОтвет
{
  "data": [
    {
      "AUDIT_LOG_ID": 0,
      "USER_ID": 0,
      "CHANGER_NAME": "string",
      "CHANGE_DATE": "2020-05-14 13:53:52.926560",
      "OPERATION": "run",
      "ENTITY_TYPE": "Adlibitum",
      "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
      "ENTITY_DISPLAY_NAME": "Some name",
      "PROPERTY_CHANGES": {}
    },
    {
      "AUDIT_LOG_ID": 0,
      "USER_ID": 0,
      "CHANGER_NAME": "string",
      "CHANGE_DATE": "2020-05-14 13:53:52.926560",
      "OPERATION": "login",
      "ENTITY_TYPE": "User",
      "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
      "ENTITY_DISPLAY_NAME": "Some name",
      "PROPERTY_CHANGES": {
        "request": {
          "hostname": "string",
          "ip": "string",
          "result": "login_failure",
          "login": "string"
        }
      }
    },
    {
      "AUDIT_LOG_ID": 0,
      "USER_ID": 0,
      "CHANGER_NAME": "string",
      "CHANGE_DATE": "2020-05-14 13:53:52.926560",
      "OPERATION": "run",
      "ENTITY_TYPE": "Policy",
      "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
      "ENTITY_DISPLAY_NAME": "Some name",
      "PROPERTY_CHANGES": {
        "old": {
          "DISPLAY_NAME": "string",
          "NOTE": "string",
          "STATUS": 0,
          "START_DATE": "string",
          "END_DATE": "string",
          "DATA": {
            "ITEMS": [
              {
                "TYPE": "catalog",
                "ID": "string",
                "NAME": "string"
              },
              {
                "TYPE": "fileformat",
                "ID": "string",
                "NAME": "string",
                "MIME_TYPE": "string",
                "ENCRYPTED": 0,
                "MERGED": 0,
                "MAX": 0,
                "MIN": 0,
                "MAX_TYPE": 0,
                "MIN_TYPE": 0
              }
            ]
          }
        },
        "new": {
          "DISPLAY_NAME": "string",
          "NOTE": "string",
          "STATUS": 0,
          "START_DATE": "string",
          "END_DATE": "string",
          "DATA": {
            "ITEMS": [
              {
                "TYPE": "catalog",
                "ID": "string",
                "NAME": "string"
              },
              {
                "TYPE": "fileformat",
                "ID": "string",
                "NAME": "string",
                "MIME_TYPE": "string",
                "ENCRYPTED": 0,
                "MERGED": 0,
                "MAX": 0,
                "MIN": 0,
                "MAX_TYPE": 0,
                "MIN_TYPE": 0
              }
            ]
          }
        },
        "rule": {
          "ENTITY_TYPE": "PolicyRule",
          "ENTITY_ID": "string",
          "ENTITY_DISPLAY_NAME": "string"
        }
      }
    }
  ],
  "meta": {
    "totalCount": 0,
    "start": 0,
    "limit": 0
  }
}
Sv translation
languageen
Примечание
titleNote:

New actions can become available in API for retrieving audit data, while the version of API may remain unchanged.

Description: List of audit data sorted by date and time of logged user actions.

Method:  GET

Resource: audit

Parameters:

  • filter - filter list:
    • change_date[>] –  start date and time of the logged user action. Are specified in UNIX timestamp format with microtime dot, for example, filter[change_date][>]=1591368000.123456
    • change_date[<] –  end date and time of the logged user action. Are specified in UNIX timestamp format with microtime dot, for example, filter[change_date][<]=1591368000.123456
    • change_date[>=] – start date and time of the logged user action. Are specified in UNIX timestamp format with microtime dot, for example, filter[change_date][>=]=1591368000.123456 
    • change_date[<=] –  end date and time of the logged user action. Are specified in UNIX timestamp format with microtime dot, for example, filter[change_date][<=]=1591368000.123456
    • entity_type[] –  the type of the entity to which the action applied (several values are possible)
  • without[] – get data without additional attributes
    • property_changes –  data of extended audit
  • sort[] –  parameter used for sorting 
    • change_date – sort by date of asc change
  • start –  a position from which audit data should be delivered (the default value is 0)
  • limit –  how many audit data sets should be delivered (the default value is 100, the value cannot be larger than 1000)
Блок кода
titleOpenAPI scheme for delivering audit data
schemas:
    auditCommon:
      type: object
      required: [AUDIT_LOG_ID, CHANGE_DATE, OPERATION, ENTITY_TYPE]
      properties: &common
        AUDIT_LOG_ID:
          type: integer
          description: Audit log id
        USER_ID:
          type: integer
          nullable: true
          description: |
            User id who performed the action (See /xapi/user).
            USER_ID may be null on login or if changes make by plugin.
        CHANGER_NAME:
          type: string
          nullable: true
          description: |
            User name or Plugin name who performed the action.
            May be null on login.
        CHANGE_DATE:
          type: string
          description: Date and time of the registered user action with format "Y-m-d H:i:s.u" in UTC
          example: "2020-05-14 13:53:52.926560"
        OPERATION:
          type: string
          description: Operation type over which the action was performed. There may be values not from the enum.
          enum:
            - run
            - canceled
            - start
            - stop
            - restart
            - view
            - create
            - update
            - change
            - delete
            - delete_ref
            - delete_hash
            - copy
            - move
            - login_failure
            - bruteforce
            - login
            - logout
            - change_password
            - commit
            - rollback
            - draft
            - add
            - import
            - export
            - export_object
            - create_widget
            - update_widget
            - delete_widget
            - download
            - sync
            - decision_update
            - add_tag
            - remove_tag
            - add_role
            - remove_role
            - add_visibility_area
            - remove_visibility_area
            - logging
            - apply_inbound
            - xapi_decision_update
            - start_scan_job
            - apply_result_scan_job
            - update_job_schedule
            - create_log
            - plugin_register
            - plugin_update
            - privileges_update
            - privileges_create
            - notification
            - notification_template
            - notification_test
            - upload_image
            - delete_image
            - create_contact
            - update_contact
            - delete_contact
            - compile_create
            - compile_update
            - create_template
            - update_template
            - delete_template
            - create_rule
            - update_rule
            - delete_rule
            - notification_test
        ENTITY_TYPE:
          type: string
          description: Entity type over which the action was performed. There may be values not from the enum.
          enum: *entryTypes
        ENTITY_ID:
          type: string
          nullable: true
          description: |
            ID of the entity which the action was performed. May be GUID or integer as string
            May by null for:
            | OPERATION | ENTITY_TYPE |
            | :--- | :--- |
            | commit | Config |
            | run | QueryReportRun |
            | sync | Adlibitum |
            | login | User |
            | rollback | Config |
          example: "DBAF4F834F7647CBB297BC9DD17B77B100000000"
        ENTITY_DISPLAY_NAME:
          type: string
          nullable: true
          description: The name of the entity over which the action was carried out
          example: "Some name"
        PROPERTY_CHANGES:
          type: object
          nullable: true
          description: Null in default Audit log events
    userLoginLogout:
      type: object
      description: For ENTITY_TYPE User and OPERATION login or logout
      properties:
        <<: *common
        OPERATION:
          type: string
          enum: [login, logout]
        ENTITY_TYPE:
          type: string
          enum: [User]
        PROPERTY_CHANGES:
          type: object
          nullable: true
          required: [request]
          properties:
            request:
              required:
                - hostname
                - ip
                - result
                - login
              properties:
                hostname:
                  type: string
                  title: Hostname
                  description: Hostname from which authorization passed
                ip:
                  type: string
                  title: Ip address
                  description: Ip address from which authorization passed
                result:
                  type: string
                  title: Result
                  description: Result
                  enum:
                    - login_failure
                    - login
                    - logout
                login:
                  type: string
                  title: User login
                  description: Entered user login in input
    userBruteForce:
      type: object
      description: For ENTITY_TYPE User and OPERATION login with bruteforce
      properties:
        <<: *common
        OPERATION:
          type: string
          enum: [ bruteforce ]
        ENTITY_TYPE:
          type: string
          enum: [ User ]
        PROPERTY_CHANGES:
          type: object
          nullable: true
          required: [ login ]
          properties:
            request:
              required:
                - login
                - display_name
              properties:
                login:
                  type: string
                  title: User login
                  description: Entered user login in input
                display_name:
                  type: string
                  title: User full name
                  description: User full name
    tagPropertyChanges:
      type: object
      additionalPropertiesproperties:
  false
      required: [AUDIT_LOG_ID, USER_ID, CHANGE_DATE, OPERATION, ENTITY_TYPE, ENTITY_ID, ENTITY_DISPLAY_NAME]
<<: *common
        ENTITY_TYPE:
          type: string
          propertiesenum: &common [ Object ]
        AUDIT_LOG_IDOPERATION:
          type: integerstring
          descriptionenum: Audit log id [ add_tag, remove_tag ]
        USERPROPERTY_IDCHANGES:
          type: integerobject
          nullableproperties:
 true
           descriptionnew: |
            User id who performed the action (See /xapi/user).$ref: '#/components/schemas/TagDiffProperties'
            USER_ID may be null on login or if changes make by plugin.
        CHANGER_NAMEold:
              $ref: '#/components/schemas/TagDiffProperties'
    TagDiffProperties:
      type: object
   type: string
  properties:
        nullableDISPLAY_NAME: true
          descriptiontype: |string
        NOTE:
    User name or Plugin name who performed thetype: action.string
    userDesicionPropertyChanges:
        May be null on login.type: object
        CHANGE_DATEproperties:
          type<<: string*common
          description: Date and time of the registered user action with format "Y-m-d H:i:s.u" in UTCENTITY_TYPE:
          type: string
          exampleenum: "2020-05-14 13:53:52.926560"[ Object ]
        OPERATION:
          type: string
          description: Operation type over which the action was performed. There may be values not from the enum.enum: [ decision_update, xapi_decision_update ]
        PROPERTY_CHANGES:
          type: object
          enumproperties:
            - run
new:
              -type: canceledobject
            -  startproperties:
               - stopUSER_DECISION:
             - restart     $ref: '#/components/schemas/UserDecisionState'
            - viewold:
            - create
 type: object
          - update
    properties:
        - change
       USER_DECISION:
     - delete
            - delete_ref$ref: '#/components/schemas/UserDecisionState'
    UserDecisionState:
        - delete_hashtype: string
      enum: [ NotProcessed, NoViolation, Violation, AdditionalProcessingNeeded - copy]
    objectExportPropertyChanges:
      type: object
 - move
    properties:
        - login_failure<<: *common
        ENTITY_TYPE:
    - login
     type: string
      - logout
   enum: [ Object ]
       - change_passwordOPERATION:
          type: string
 - commit
        enum: [ export_object ]
  - rollback
     PROPERTY_CHANGES:
       - draft
  type: object
         - addproperties:
            - importnew:
            - export
 type:  object
         - export_object
    properties:
        - download
       PARAMS:
     - sync
            - decision_updatetype: object
            - add_tag
     properties:
       - remove_tag
            - add_role
QUERY_ID:
             - remove_role
        type: integer
   - add_visibility_area
            - remove_visibility_area
     nullable: true
      - logging
            - applyDISPLAY_inboundNAME:
               - xapi_decision_update
       type: string
      - start_scan_job
            - apply_result_scan_job COMMENT:
            - update_job_schedule
         type: string
  - create_log
            - plugin_register
    FILTER:
        - plugin_update
            - privileges_updateanyOf:
            - privileges_create
           - -type: notificationobject
            - notification_template
            - notification_test type: array
        ENTITY_TYPE:
            typeSORT: string
          description: Entity type over which the action was performed. There may be values not from the enum.
type: object
           enum: *entryTypes
        ENTITYIS_ONE_IDREPORT:
          type:  string
          nullable$ref: true
'#/components/schemas/BooleanAsInteger'
                 description: |
   ONE_LOAD_REPORT:
             ID of the entity which the action was performed. May be GUID or integer as string
$ref: '#/components/schemas/BooleanAsInteger'
                 May by null forFORMAT:
              |      OPERATION | ENTITY_TYPE |type: string
            | :--- | :--- |
      enum: [ simple, full ]
  | commit | Config |
            | run |TYPE:
 QueryReportRun |
            | sync | Adlibitum |
    type: object
       | login | User |
           properties:
 | rollback | Config |
          example: "DBAF4F834F7647CBB297BC9DD17B77B100000000"
        ENTITYone_DISPLAY_NAMEreport:
          type: string
          nullable: true
    type: string
     description: The name of the entity over which the action was carried out
          exampleenum: "Some name"
    [ docx, xls, xlsx, pdf ]
    PROPERTY_CHANGES:
          type: object
          nullable: trueseveral_report:
          description: Null in default Audit log events
    userLoginLogout:
      type: objectstring
       description: For ENTITY_TYPE User and OPERATION login or logout
      properties:
     enum: [ docx, <<:pdf *common]
        OPERATION:
            type: string
IS_SEVERAL_REPORT:
            enum: [login, logout]
        ENTITY_TYPE:$ref: '#/components/schemas/BooleanAsInteger'
          type: string
          enum: [User]
SEVERAL_LOAD_REPORT:
            PROPERTY_CHANGES:
          type$ref: object'#/components/schemas/BooleanAsInteger'
          required: [request]
          propertiesLOAD_ATTACHMENT:
            request:
          $ref: '#/components/schemas/BooleanAsInteger'
   required:
                - hostnameKEEP_HIERARCHY:
                - ip
     $ref: '#/components/schemas/BooleanAsInteger'
          - result
         LOAD_SNIPPET:
       - login
              properties:
$ref: '#/components/schemas/BooleanAsInteger'
                 hostname:
   LOAD_EML:
               type: string
      $ref: '#/components/schemas/BooleanAsInteger'
           title: Hostname
        LOAD_DEBUG_OBJECT:
          description: Hostname from which authorization passed
       $ref: '#/components/schemas/BooleanAsInteger'
        ip:
            SCOPE:
      type: string
                  titleoneOf:
 Ip address
                  description: Ip address from which- authorizationtype: passedstring
                result:
          enum: [ all ]
     type:  string
                 - titletype: Resultarray
                  description: Result
       items:
           enum:
                    - login_failuretype: integer
                    - loginGROUPING:
                    - logout
 type: array
              login:
        items:
          type: string
             type: string
    title: User login
                  descriptionenum: Entered user login in input
    policyPropertyChanges:
 [CaptureDate, Computer, Object, ObjectType, Person]
     type: object
      description: For ENTITY_TYPE Policy
      nullable: trueIS_REPORT_ARCHIVE:
      properties:
        <<: *common
        ENTITY_TYPE:$ref: '#/components/schemas/BooleanAsInteger'
    BooleanAsStringOrInteger:
      type$ref: string'common.yaml#/components/schemas/BooleanAsStringOrInteger'
    BooleanAsInteger:
      enum$ref: [Policy]'common.yaml#/components/schemas/BooleanAsInteger'
        PROPERTY_CHANGESBooleanAsString:
      $ref:    type: object'common.yaml#/components/schemas/BooleanAsString'
  

Example:

Блок кода
titleQuery
curl -X GET "https://qa-2944.infowatch.ru/xapi/audit?sort[CHANGE_DATE]=asc&filter[ENTITY_TYPE][]=Adlibitum&filter[ENTITY_TYPE][]=Audit&filter[ENTITY_TYPE][]=Config&filter[ENTITY_TYPE][]=Perimeter&filter[ENTITY_TYPE][]=Policy&start=0&limit=5" -H "accept: application/json" -H "X-Enable-OpenAPI: 1"
Блок кода
titleResponse
{
  "data": [
    {
      "AUDIT_LOG_ID": 0,
      "USER_ID": 0,
      "CHANGER_NAME": "string",
      "CHANGE_DATE": "2020-05-14 13:53:52.926560",
      "OPERATION": "run",
      "ENTITY_TYPE": "Adlibitum",
      "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
      "ENTITY_DISPLAY_NAME": "Some name",
      "PROPERTY_CHANGES": {}
    },
    {
      "AUDIT_LOG_ID": 0,
      "USER_ID": 0,
      "CHANGER_NAME": "string",
      "CHANGE_DATE": "2020-05-14 13:53:52.926560",
      "OPERATION": "login",
      "ENTITY_TYPE": "User",
      "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
      "ENTITY_DISPLAY_NAME": "Some name",
      "PROPERTY_CHANGES": {
        "request": {
          "hostname": "string",
          "ip": "string",
          "result": "login_failure",
          "login": "string"
        }
      }
    },
    {
      "AUDIT_LOG_ID": 0,
      "USER_ID": 0,
      "CHANGER_NAME": "string",
      "CHANGE_DATE": "2020-05-14 13:53:52.926560",
      "OPERATION": "run",
      "ENTITY_TYPE": "Policy",
      "ENTITY_ID": "DBAF4F834F7647CBB297BC9DD17B77B100000000",
      "ENTITY_DISPLAY_NAME": "Some name",
      "PROPERTY_CHANGES": {
        "old": {
          "DISPLAY_NAME": "string",
          "NOTE": "string",
          "STATUS": 0,
          "START_DATE": "string",
          "END_DATE": "string",
          "DATA": {
            "ITEMS": [
              {
                "TYPE": "catalog",
                "ID": "string",
                "NAME": "string"
              },
              {
                "TYPE": "fileformat",
                "ID": "string",
                "NAME": "string",
                "MIME_TYPE": "string",
                "ENCRYPTED": 0,
                "MERGED": 0,
                "MAX": 0,
                "MIN": 0,
                "MAX_TYPE": 0,
                "MIN_TYPE": 0
              }
            ]
          }
        },
        "new": {
          "DISPLAY_NAME": "string",
          "NOTE": "string",
          "STATUS": 0,
          "START_DATE": "string",
          "END_DATE": "string",
          "DATA": {
            "ITEMS": [
              {
                "TYPE": "catalog",
                "ID": "string",
                "NAME": "string"
              },
              {
                "TYPE": "fileformat",
                "ID": "string",
                "NAME": "string",
                "MIME_TYPE": "string",
                "ENCRYPTED": 0,
                "MERGED": 0,
                "MAX": 0,
                "MIN": 0,
                "MAX_TYPE": 0,
                "MIN_TYPE": 0
              }
            ]
          }
        },
        "rule": {
          "ENTITY_TYPE": "PolicyRule",
          "ENTITY_ID": "string",
          "ENTITY_DISPLAY_NAME": "string"
        }
      }
    }
  ],
  "meta": {
    "totalCount": 0,
    "start": 0,
    "limit": 0
  }
}