Die Endpunkte haben sich anscheinend geändert. Ich habe dieses Script gefunden um den korrekten Endpunkt herauszufinden.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
[Net.ServicePointManager]::CheckCertificateRevocationList = $false
[Net.ServicePointManager]::ServerCertificateValidationCallback =
[System.Net.Security.RemoteCertificateValidationCallback]{ param($s,$c,$ch,$e) $true }
$body = @{ domain="x"; username="x"; password="x"} | ConvertTo-Json
$roots = @(
"https://v-backup01/webconsole/api",
"https://v-backup01/commandcenter/api",
"https://v-backup01/SearchSvc/CVWebService.svc"
)
foreach ($r in $roots) {
$u = "$r/Login"
try {
Invoke-RestMethod -Method POST -Uri $u -ContentType "application/json" -Body $body -ErrorAction Stop | Out-Null
"$u -> OK"
} catch {
$resp = $_.Exception.Response
if ($resp -and $resp.StatusCode) {
"$u -> HTTP $([int]$resp.StatusCode)"
} else {
"$u -> $($_.Exception.Message)"
}
}
}