You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invoke-RestMethod -Uri "https://$Server/api/logout" -Method Post -Headers $Header
Getting this
Invoke-RestMethod :
{"result":[{"code":"0","message":"php function call with incorrect parameter type","link":"http://kb.unitrends.com"}]}
At C:\Users\User\Scripts\Unitrends\Unitrends Logout.ps1:17 char:1
Invoke-RestMethod -Uri "https://$Server/api/logout" -Method Post -Hea ...
Need help with logout call here is code:
$Header = @{
"AuthToken" = $response.auth_token
}
Invoke-RestMethod -Uri "https://$Server/api/logout" -Method Post -Headers $Header
Getting this
Invoke-RestMethod :
{"result":[{"code":"0","message":"php function call with incorrect parameter type","link":"http://kb.unitrends.com"}]}
At C:\Users\User\Scripts\Unitrends\Unitrends Logout.ps1:17 char:1
The text was updated successfully, but these errors were encountered: