Skip to content

Commit c93cd90

Browse files
Update date change tracker api overview doc to include new endpoint docs
1 parent c1c83e6 commit c93cd90

File tree

1 file changed

+59
-6
lines changed

1 file changed

+59
-6
lines changed
Lines changed: 59 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,67 @@
11
---
22
title: "API"
3-
description: "API"
3+
description: "ChangeTracker API Documentation"
44
sidebar_position: 20
55
---
66

77
# API
88

9-
Customers who run multiple instances of Netwrix Change Tracker in multiple regions can use the API
10-
to pull data from each instance and use that data build global reports containing data from all
11-
instances.
9+
Netwrix Change Tracker provides a comprehensive REST API that allows customers to integrate with the platform programmatically. This is particularly useful for customers who run multiple instances of Netwrix Change Tracker in multiple regions, as they can use the API to pull data from each instance and build global reports containing data from all instances.
1210

13-
- [Agents](/docs/changetracker/8.1/integration/api/agents.md) – To pull data on agent statuses, configurations and group memberships, use
14-
the agentsRanked endpoint.
11+
## Authentication
12+
13+
All API endpoints require authentication. You'll need to include appropriate authentication credentials with your requests. The specific authentication method is detailed in each API documentation page.
14+
15+
## Available APIs
16+
17+
The following API endpoints are available in Netwrix Change Tracker:
18+
19+
- [Agents](/docs/changetracker/8.1/integration/api/agents.md) – Pull data on agent statuses, configurations, and group memberships using the agentsRanked endpoint. This API allows you to retrieve detailed information about all agents in your environment, including their group memberships and applied tracking templates.
20+
21+
- [Register Agents](/docs/changetracker/8.1/integration/api/register-agents.md) – Register new agents with the system using the agents/register endpoint. This API allows you to register both direct agents installed on devices and proxied devices accessed through another agent.
22+
23+
- [Credentials](/docs/changetracker/8.1/integration/api/credentials.md) – Manage authentication credentials used by ChangeTracker to connect to various systems and services. This API provides endpoints for creating, retrieving, updating, and deleting credentials for different credential types including Shell, Database, FTP, Cloud, ESX, ITSM, and Splunk.
24+
25+
## API Usage Best Practices
26+
27+
When working with the ChangeTracker API, consider the following best practices:
28+
29+
1. **Rate Limiting**: Implement appropriate rate limiting in your applications to avoid overwhelming the API.
30+
31+
2. **Error Handling**: Always implement proper error handling in your code to gracefully handle API errors.
32+
33+
3. **Authentication**: Store API credentials securely and never expose them in client-side code.
34+
35+
4. **Data Filtering**: When retrieving large datasets, use the available filtering parameters to limit the amount of data returned.
36+
37+
5. **Pagination**: For endpoints that return large collections, implement pagination to improve performance.
38+
39+
## Example Usage
40+
41+
Below is a simple example of how to use the API with PowerShell:
42+
43+
```powershell
44+
# Set up a session variable for the Admin user
45+
$myWebSession = GetAdminUserSession
46+
47+
# Define the API endpoint
48+
$uri = "https://changetracker.example.com/api/agentsRanked"
49+
50+
# Define the request body
51+
$requestBody = @{
52+
DeviceFilter = @{
53+
GroupNames = @()
54+
AgentDeviceIds = @()
55+
AgentDisplayNames = @()
56+
ExcludeProxiedDevices = $false
57+
OnlineStatuses = @("Online")
58+
}
59+
GetAgentGroupDetails = $true
60+
GetRelatedTemplates = $true
61+
} | ConvertTo-Json
62+
63+
# Make the API request
64+
$result = Invoke-RestMethod -Method Post -ContentType application/json -Uri $uri -WebSession $myWebSession -Body $requestBody
65+
```
66+
67+
For more detailed information about each API endpoint, please refer to the specific API documentation pages linked above.

0 commit comments

Comments
 (0)