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

API for updating Custom Fields via REST Call in Solarwinds

Hi All,

We are looking for the API for updating Custom Fields via REST Call so that we should use that by ITSM like (Service NOW) & it could use & update fields. There are limited fields that we want to push from Service Now to SolarWinds (Like City, Region, Type). Please let me know if someone came across same case.

Thanks,

Amit

0 Kudos
11 Replies
Level 7

Are u able to push data to a custom filed on SolarWinds from ServiceNow ?? I am looking to achieve something similar to urs.

If yes can you please share how you achieved this req.

Thanks in advance. 

0 Kudos

You surely can. There are code examples in PowerShell, Python, Go, and others on the SolarWinds repository.

0 Kudos
Level 13

You'll find some information about how to integrate SolarWinds Orion with ServiceNow here:

How to service-now integrate with solarwinds

However, all the discussions about integration that I've found revolve around sending data from SolarWinds to ServiceNow.  You seem to be interested in doing the reverse.  Can you provide additional details about what events in ServiceNow you would like to send to SolarWinds Orion, and where you would like them to show up?

0 Kudos

It is not about event flow. We would like to push data from ServiceNow to SolarWinds lets say there are some field which are customized and available in both ServiceNow and Solarwinds  (Like city for devices ) so that through rest web api Service now should push the data in Solarwinds.

0 Kudos

If you're interested in making changes to custom properties, you'll want to read the Modifying Custom Properties​ section of this page in the wiki:

Managing Custom Properties · solarwinds/OrionSDK Wiki · GitHub

0 Kudos

Do we have any rest web API which could update the values of custom properties defined in Solar winds and we could try to push the values from ServiceNow?

Do we have any rest web API which could update the values of custom properties defined in Solar winds and we could try to push the values from ServiceNow?

Yes.  The REST API documentation below includes a section on updating custom properties.

REST · solarwinds/OrionSDK Wiki · GitHub

0 Kudos

what is the user interface where we run these Web Api's is it a browser??

Lets say below is the rest query request .

GET https://localhost:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+Uri+FROM+Orion.Poll... HTTP/1.1
Authorization: Basic YWRtaW46
User-Agent: curl/7.20.0 (i386-pc-win32) libcurl/7.20.0 OpenSSL/0.9.8l zlib/1.2.3
Host: localhost:17778
Accept: */*

Tried to execute https://orion_server:17778/SolarWinds/InformationService/v3/Json/swis://tdanner-dev.swdev.local/Orio... in web browser but received the message:

This site can’t be reached orion.bv.c.om’s server IP address could not be found.

Try running Windows Network Diagnostics.

DNS_PROBE_FINISHED_NXDOMAIN

Thanks,

Amit

0 Kudos

I support what the guys above me said. Also, your URL has "swis://tdanner-dev.swdev.local" in it. As you're not T. Danner or in the Solarwinds Development team, this wouldn't work in the first place. You seem to have copied an example Response from the wiki.

0 Kudos

REST and API's are not something you interact with via a web browser. Seems like you will need to review the wiki documentation more thoroughly and might find this article to be helpful as a starting point:

https://loop1.com/swblog/using-the-rest-api-to-get-the-most-out-of-solarwinds-part-1/

https://loop1.com/swblog/using-the-rest-api-to-get-the-most-out-of-solarwinds-part-2/

- Marc Netterfield, Github
0 Kudos

mesverrum​ is spot on with not using a browser, but I noticed the error message looked like you had put an extra period in your domain. Is it supposed to be orion.bv.com?

0 Kudos