infracloud/dev-scripts/scripts/get-ghj-urls.ps1

6 lines
405 B
PowerShell

$token = "fzz2xL0UUwpeVB1mObEwxE9GO8sTV8z2OHiOojmdf0e428be"
$uuids = @("iw4sow8s0kkg4cccsk08gsoo", "ao8g40scws0w4cgo8coc8o40", "hg48wkw4wggwsswcwc8sooo4", "q4w48gos8cgssso00o8w8gck")
foreach ($uuid in $uuids) {
$response = Invoke-RestMethod -Uri "https://redbull.rede5.com.br/api/v1/applications/$uuid" -Headers @{Authorization="Bearer $token"}
Write-Host "$($response.name): $($response.fqdn)"
}