12 lines
678 B
PowerShell
12 lines
678 B
PowerShell
$token = Get-Content 'c:\Users\Administrator\.ssh\coolify-redbull-token'
|
|
$baseUrl = "https://redbull.rede5.com.br/api/v1"
|
|
|
|
Write-Host "--- APLICACOES ---"
|
|
$appsResponse = Invoke-RestMethod -Uri "$baseUrl/applications" -Headers @{Authorization = "Bearer $token" } -Method Get
|
|
$apps = $appsResponse | Where-Object { $_.name -match 'open' }
|
|
$apps | Select-Object name, status, uuid | Format-Table -AutoSize
|
|
|
|
Write-Host "--- SERVICOS ---"
|
|
$srvResponse = Invoke-RestMethod -Uri "$baseUrl/services" -Headers @{Authorization = "Bearer $token" } -Method Get
|
|
$srvs = $srvResponse | Where-Object { $_.name -match 'open' }
|
|
$srvs | Select-Object name, status, uuid | Format-Table -AutoSize
|