Skip to main content

REST API

Overview

Netwrix Activity Monitor API gives you access to the most information and functionality available in the console. You can manage agents, monitored hosts, AD monitoring.

The REST-style API is provided by the API Server feature which is a component of the Activity Monitor Agent (Windows only). It is preinstalled with the Agent, disabled by default.

Like the console, a single API Server can manage many agents. A single API Server can manage the whole organization. However, one capability requires running the API Server on each and every Activity Monitor Agent and is the HTTPS access to the log files.

Schema

The 7.1 API model consists of the following resources:

Agent

  • Represents an Activity Monitor Agent. API allows you to view existing agents and their statuses; register, modify or remove agents. There is no way to install, upgrade, or uninstall agents in the 6.0 API. You can list all the agents or the agents of a Domain (i.e. AD-monitoring agents on the domain controllers).

Children: Host, Domain

  • Host – Represents a host or platform monitored by the product (Windows, NetApp, SharePoint, SQL Server, etc). It is a Monitored Host in the Console. You can list all the Hosts of the Agent, or just all the Hosts. The API Provides access to the settings of the host and its status; allows you to create new hosts, modify, enable/disable, or delete exisisting. Typical properties include a hostname, credentials to access API, connection settings. A Host has at least one Output.

Children: Output

  • Domain – It is a Monitored Domain in the Console. The API provides summary information about each monitored domain.

Children: Output, Agent

  • Output – A log file or Syslog or AMQP (DEFEND) destination for the activity data.

Each host has one or more outputs. Each output has its own filtering settings.

Similar to host, the domain also has one or more output. These outputs are common for all AD-monitoring agents of the domain. I.e. each domain controller has the same log file settings, syslog, and AMQP.

Typical properties of the Output include log file settings (path, retention, ...), syslog settings (server, UDP/TCP, message template, ...), path filtering (include C:, exclude C:\temp), operations (Write File, Create File, Delete File, Create Share, ...), account filtering (exclude DOMAIN\service-account1), protocol (CIFS, NFS), etc.

Children: File

  • File – Information about the actual .TSV, .JSON, and .ZIP files stored on the agent. A file can be downloaded.
  • Policy – Represents an Active Directory monitoring policy. The API allows you to create new policies, list, modify, and delete existing.

Data is sent and received as JSON objects or JSON Merge Patch for the PATCH requests. Blank fields are reported as null instead of being omitted. Dates are in UTC, in YYYY-MM-DDTHH:MM:SSZ format.

See the following topics for additional information about REST API: