Events Include: Policy Actions, Device Addition/Removal, User Addition/Removal
page | integer Default: 0 The page of results you wish to be returned with page numbers starting at 0. See About Automox API - Pagination | ||||||||||||||||||||||||||||||||
countOnly | integer Use instead of | ||||||||||||||||||||||||||||||||
policyId | integer or null Retrieve events for a specific policy. | ||||||||||||||||||||||||||||||||
serverId | integer Retrieve events for a specific device. | ||||||||||||||||||||||||||||||||
userId | integer Retrieve events for a specific user. | ||||||||||||||||||||||||||||||||
eventName | string Name for the event type.
| ||||||||||||||||||||||||||||||||
startDate | string <date> Limit responses to include only events after this date. Format: (YYYY-MM-DD). | ||||||||||||||||||||||||||||||||
endDate | string <date> Limit responses to include only events before this date. Format: (YYYY-MM-DD). | ||||||||||||||||||||||||||||||||
limit | integer [ 1 .. 500 ] Default: 500 A limit on the number of results to be returned, between 1 and 500, with a default of 500. Use with page parameter. See About Automox API - Pagination | ||||||||||||||||||||||||||||||||
o required | integer Organization ID. Response will include devices for the specified Automox organization. The organization will be assumed based on the API key, if not specified. |
successful operation
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Too many requests
Service Unavailable
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = "https://console.automox.com/api/events?o=0000&limit=2&startDate=2019-05-04&endDate=2019-05-07" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
[- {
- "id": 250624,
- "name": "system.add",
- "user_id": 754125,
- "server_id": 621453,
- "organization_id": 8427961,
- "policy_id": 123456,
- "server_name": "Test Device",
- "data": {
- "ip": "204.168.24.35",
- "os": "Windows",
- "systemname": "Test Device"
}, - "policy_name": "Test Policy",
- "policy_type_name": "patch",
- "create_time": "2021-07-01T00:00:00Z"
}
]