| 123456789101112131415161718192021222324 |
- # Profile domain validation (Plan B P2/P3)
- param(
- [string]$ApiBase = "http://127.0.0.1:8006",
- [int]$CompanyId = 338,
- [int]$TenantId = 33,
- [string]$OpsSecret = "lobster-dev-ops"
- )
- $ErrorActionPreference = "Stop"
- $headers = @{
- "Content-Type" = "application/json"
- "X-Lobster-Ops-Secret" = $OpsSecret
- }
- $uri = "$($ApiBase.TrimEnd('/'))/api/lobster/admin/validation/profile-domain/${CompanyId}?tenantId=${TenantId}"
- Write-Host "POST $uri"
- $resp = Invoke-RestMethod -Uri $uri -Method Post -Headers $headers -TimeoutSec 120
- $json = $resp | ConvertTo-Json -Depth 20
- Write-Host $json
- if ($resp.passed) {
- Write-Host "RESULT: PASS" -ForegroundColor Green
- exit 0
- }
- Write-Host "RESULT: FAIL" -ForegroundColor Red
- exit 1
|