1 Reply Latest reply on May 20, 2016 12:47 AM by tdanner

    API unable to access custom property

    mxr662

      This is the call and response our developer is getting.  This is working for the interface custom property, but not the node custom property

       

      The webservice endpoint is: /SolarWinds/InformationService/v3/Json/Create/Orion.Nodes

      And content data is this:

      {

         "IPAddress": "xx.xx.xx.xx",

         "EngineID": 1,

         "ObjectSubType": "SNMP",

         "SNMPVersion": 2,

         "Community": "xxxx",

         "EntityType": "Orion.Nodes",

         "DynamicIP": false,

         "PollInterval": 300,

         "RediscoveryInterval": 120,

         "StatCollection": 5,

         "NodeName": "asr901-test-xxx.xxx.net",

         "SysName": "asr901-test-xxx.xxx.net",

      "Vendor": "Cisco",

         "MachineType": "Cisco A901-6CZ-F-A",

         "NextPoll": "2016-05-17T15:50:25.813",

         "NextRediscovery": "2016-05-17T15:50:25.813",

         "CustomProperties": {

            "NetCrackerNodeObjectId": "NC123456"

         }

      }

      And the response content is this:

      {

         "Message": "Access to CustomProperties denied.",

         "ErrorCode": 20,

         "UserMessage": "Access to CustomProperties denied.",

         "ExceptionType": "SolarWinds.Data.AccessDeniedException",

         "FullException": "SolarWinds.Data.AccessDeniedException: Access to CustomProperties denied.\r\n   at SolarWinds.InformationService.Core.CrudProcessor.CreateAccessDeniedException(String message)\r\n   at SolarWinds.InformationService.Core.CrudProcessor.CheckAccessControl(AccessControlOperations operations, IEntityType entity, IEnumerable`1 propertyNames, IAccessControlResolver accessControlResolver)\r\n   at SolarWinds.InformationService.Core.CrudProcessor.CreateInternal(String entityType, IDictionary`2 properties, IQueryExecutionContext context)\r\n   at SolarWinds.InformationService.Core.CrudProcessor.Create(IServiceHost serviceHost, String entityType, IDictionary`2 properties, IQueryExecutionContext context)\r\n   at SolarWinds.InformationService.Core.InformationService.Create(String entityType, IDictionary`2 properties)"

        • Re: API unable to access custom property
          tdanner

          This API does not support setting custom properties at the time of node creation. You need to create the node without custom properties, then set the custom properties by taking the node Uri returned from .../Create/Orion.Nodes and appending "/CustomProperties" and POSTing your custom property values to that url.