Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Creating custom IPNode properties using REST api

$
0
0

Hello,

I've been working on automation recently and it's been going well until recently when I encounter a new problem.

We have some custom fields in the IPNode entity that I usually update with the REST api, I noticed when there is no custom fields set at all, the api returns "null" (which is normal) but the data does not update.

 

This is the request that I have been using:

 

POST https://myserver:17778/SolarWinds/InformationService/v3/Json/swis://myserver/Orion/IPAM.IPNode/IpNodeId=22222/Custom

JSON body:

 

{

    "Server_Name": "Test"

}

 

The field "Server_Name" is the custom field that I'm trying to update.

I tried to figure out what's wrong using SWQL studio and I found that if there is no rows representing IpNodeId in IPAM.IPNodeAttr table I won't be able to update the custom field.

 

Seems to me like I hate to create the entity first somehow. I tried to google this issue but unfortunately I could not find the answer.

I would really appreciate any help.

 

Thanks.


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>