SCOM REST API Authentication Error

Udesh Chathuranga Sendanayake 1 Reputation point
2020-11-02T04:42:34.587+00:00

Hi,

My role is an operator and I'm trying below SCOM login api using postman and i'm getting 401 error. I have followed their official documentation.

POST http://<Servername>/OperationsManager/authenticate

Request is like below :

POST /OperationsManager/authenticate HTTP/1.1
Host: hostname
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: token

{"credentials":"EncodedString(Network:domain\username:password)"}

And also i tried some get calls using browser and those are working.
Someone please assist. Thanks in advance!

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,419 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,666 Reputation points
    2020-11-02T06:10:00.93+00:00

    Hi @Udesh Chathuranga Sendanayake ,

    I wrote a quickstart blog post about SCOM REST API, I suggest you have a look at my examples there:

    https://thesystemcenterblog.com/2020/07/09/quick-start-scom-rest-api/

    My examples use PowerShell which is a modern but also a great way if you want to start automating.

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon