0 Replies Latest reply on May 17, 2017 12:28 PM by grthompson

    GETTING NULLREFERENCE EXCEPTION WHEN ATTEMPTING TO USE ADDPTRTODNSARECORD VIA REST

    grthompson

      Hi,

       

      I am trying to add a PTR record to an existing A record.  However I am getting an error back when I attempt this.

       

      This is the URL I am using via REST: https://example.com:17778/SolarWinds/InformationService/v3/Json/Invoke/IPAM.IPAddressManagement/AddPtrToDnsARecord

       

      And these are the values I have tried to insert into the body:

       

      ["SWDNSTest001","10.30.43.6","10.30.0.11","example.net"]

      ["SWDNSTest001.example.net","10.30.43.6","10.30.0.11","example.net"]

      ["SWDNSTest001","10.30.43.6","10.30.0.11","43.30.10.in-addr.arpa"]

      ["SWDNSTest001.example.net","10.30.43.6","10.30.0.11","43.30.10.in-addr.arpa"]

       

      None of these have worked.  They all result in the following error message:

       

      {"Message":"Object reference not set to an instance of an object.","ExceptionType":"System.NullReferenceException","FullException":"System.NullReferenceException: Object reference not set to an instance of an object.\u000d\u000a   at SolarWinds.InformationService.Verb.VerbExecutor.Invoke(Object hostInstance, Object[] parameters)\u000d\u000a   at SolarWinds.InformationService.Verb.VerbExecutorContext.Invoke()\u000d\u000a   at SolarWinds.InformationService.Core.InformationService.Invoke[T](String entity, String verb, Action`1 setupParameters, Func`2 extractReturnValue)"}

       

      The 'A' record 'SWDNSTest001.example.net' does exist and is pointed to 10.30.43.6.  I added that record using the 'AddDnsARecord' method via REST.

       

      Any ideas?

       

      Thanks