locked
SCOM 2019 REST API RRS feed

  • Question

  • I'm taking a stab at doing some basic querying of the REST API using PowerShell.

    No matter what I do, I keep getting "Invoke-RestMethod : {"errorMessage":"The required anti-forgery cookie \"__RequestVerificationToken..."

    I am creating the cookie, and when I dump the cookies, I see the SCOM cookie:

    SCOMSessionId = <SessionID>
    SCOM-CSRF-TOKEN = <Token>

    Any ideas?

    Thanks!

    Tuesday, March 31, 2020 5:49 PM