Question with full details :-
I have scom2019. Whenever I run the rest api http://<scomhost>/OperationsManager/data/alert from powershell script on the same scom host then I am getting the result.
But when I invoke the http://<scomhost>/OperationsManager/data/alert api by passing the authentication from postman I always get the following error
{
"errorMessage": "Your session with the Web console server expired.",
"errorTrace": ""
}
Am I missing something? Do I need to pass any headers or paramaters or do I need to enable something on scom side to make the rest api work from some other host?
Can you please help to resolve the issue.