$token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6OTk5OTk5OTk5OX0.L8PNFqKLDqPyPpkcVVQcEbWrDh1FJ7BfZ7DsN0F8_jM" try { $response = Invoke-WebRequest -Uri "http://localhost:8000/api/v1/configuration/action-mappings" -Headers @{"Authorization" = "Bearer $token"; "Content-Type" = "application/json"} -Method GET -UseBasicParsing Write-Host "API Status: $($response.StatusCode)" $json = $response.Content | ConvertFrom-Json Write-Host "Total mappings: $($json.mappings.Count)" $panLeft = $json.mappings | Where-Object { $_.name -eq "GeVi PanLeft_101027" } if ($panLeft) { Write-Host "" Write-Host "Found GeVi PanLeft_101027:" Write-Host " ID: $($panLeft.id)" Write-Host " Output Actions:" foreach ($output in $panLeft.output_actions) { Write-Host " - Action: $($output.action)" Write-Host " Parameters: $($output.parameters | ConvertTo-Json -Compress)" } } else { Write-Host "GeVi PanLeft_101027 not found" } } catch { Write-Host "API Error: $($_.Exception.Message)" }