cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 7

Powershell Module /REST API error: (500) Internal Server Error. Solarwinds DPA

Amy1_0-1603391982289.png

i want to register SQLServer instance to Solarwinds DPA using REST API. But i am stuck at token part as it keeps failing with error 500

 

Method1:

I tried to do this using steps mentioned in https://documentation.solarwinds.com/en/Success_Center/DPA/Content/DPA-powershell-script-examples.ht... and it failed(i am using self signed cert so i included that part in script) with 500 error

#----------------------------------------------------------
# Adding certificate exception to prevent API errors
#----------------------------------------------------------										
											
add-type @"
  using System.Net;
  using System.Security.Cryptography.X509Certificates;
  public class TrustAllCertsPolicy : ICertificatePolicy {
    public bool CheckValidationResult(
      ServicePoint srvPoint, X509Certificate certificate,
      WebRequest request, int certificateProblem) {
      return true;
    }
  }
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy

 

Method2:

I tried using management API documentation link in my options>utilities>management api documentation

I input my token value there and i am getting same 500 error

 

Method 3:

My last method was to use PSDPA powershell module(screenshot attached). i still get same error 500.

 

 

 

How can i fix this? Anyone having similar issue? 

 

 

0 Kudos
0 Replies