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 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
$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
[ ]