API GET All Other Assets

Hi!

I'm fairly new to working with APIs and am trying to write a PowerShell script to pull all of our "other assets" from our SolarWinds.
We'd like to eventually use this API to mass update fields that are not available in the Update function within SolarWinds itself.
I've been following the API documentation here: https://apidoc.samanage.com/ and below is what I have so far.

$token = "***************"
$uri = "https://api.samanage.com/other_assets.json"

$headers = @{
'X-Samanage-Authorization' = "Bearer $token"
}

$Array = Invoke-RestMethod -Uri $uri -Headers $headers -Method Get

$Count = $Array.Count
Write-Host "Number of objects in the Array: $Count"

This only brings in 25 objects and I know that we have much more, so I'm guessing it's only bringing in the first page.
I've tried a few different things to try to paginate (?) through it but only received errors so any help would be greatly appreciated! 

Thanks!

Parents Reply Children
No Data