Hi,
I am making a list of all my clients connected to a network by API. I have always used the Invoke-RestMethod due to the fact that the parameters I receive are easy to deal with, my problem recurs when I filter by timespan and page always returns a gateway timeout error message.
I have tried to set a timeout time but the same problem still appears.
$response = Invoke-WebRequest -Uri $url -TimeoutSec 320 -Method 'GET' -Headers $headers -Verbose