Hey all,
Hopefully this is an easy question, but i’m stumped. I’m trying to query the /job endpoint to return all jobs from a specific tag. Not really doing anything special, but here is the code…
$headers = @{Authorization = "Bearer $appToken"}
Invoke-RestMethod -Method Get -Headers $headers -Uri "https://<server>/api/v1/job?Tag=<Tag Name>"
Yesterday this exact code was working perfectly fine. Since then there have been no code changes, but we did version upgrade from 2.9.X to 3.5.5 (which makes me wonder if i need to update the way i’m hitting the endpoint?) The interesting thing here is that I DO get results when I try in swagger.
But when I hit the same endpoint in ISE (or even Postman) I’m coming back with no response.
What am I missing here?
Product: PowerShell Universal
Version: 3.5.5