Hey Dale, take a look on this overview:
https://developer-docs.citrix.com/projects/monitor-service-odata-api/en/latest/Session_and_Application_usage.pdf
You can use this powershell function to receive the data:
function Export-Odata {
[CmdletBinding()]
param(
[string]$URI,
$Params)
$data = @()
$NextLink = $URI
write-host $URI
write-host 'Fetching :'$URI.split('?')[0].split('/')[4] -ForegroundColor Yellow
$APItimer.Restart()
While ($Null -ne $NextLink) {
$tmp = Invoke-WebRequest -Uri $NextLink @Params | ConvertFrom-Json
$tmp.Value | ForEach-Object { $data += $_ }
$NextLink = $tmp.'@odata.NextLink'
}
[String]$seconds = "[" + ($APItimer.elapsed.seconds).ToString() + "sec]"
write-host $seconds -ForegroundColor Red
return $data
}
Let me know if you need anything else.