Hi, has anyone had any issues with the API from today?
I had a script that pulled down all machines and was working fine for the last few weeks however stopped this morning with an ‘Invoke-WebRequest : The remote server returned an error: (500) Internal Server Error’.
Script is (XXXX added for privacy):
$apiKey = "XXXXX"
$orgID = "XXXXX"
$expDir = 'XXXXX'
#############################################################################################################
#Pull server detail by group from API and export as csv to defined directory
$uri = "https://console.automox.com/api/servers?o=$orgID&api_key=$apiKey&l=1100"
(Invoke-WebRequest -Method -Uri $uri).Content | ConvertFrom-Json | Select-Object results -ExpandProperty results| Select-Object name, serial_number | Export-Csv -Path $expDir\AutomoxAPI_Export.csv -NoTypeInformation -Force
If I remove the ‘&l=1100’ from the uri variable it works without issue, however only pulls 500 devices.
This only started happening from today.