Just happend to have a similar issue. I came up with this function. Hope this helps Function Get-Clients { param ( [Parameter(mandatory=$true)]$MerakiApiKey, [Parameter(mandatory=$true)]$networkId, $perPage = "50" ) $headers = @{ "X-Cisco-Meraki-API-Key" = $MerakiapiKey "Content-Type" = "application/json" "Accept" = "application/json" } $ClientBody = @{ perPage = $perPage } $clientsurl = "https://api.meraki.com/api/v1/networks/$networkId/clients" $AllClientData = $null do { Write-Host "Requesting clients from $clientsurl" $result = Invoke-WebRequest -Uri $clientsurl -Headers $Headers -Body $ClientBody $AllClientData += $result.Content | ConvertFrom-Json $clientsurl = $result.RelationLink.next } until ($clientsurl -notlike "https://api.meraki.com/*") return $AllClientData }
... View more