Highlighted
Trusted Contributor.
Trusted Contributor.
579 views

json

Hi, all.

 

Does ucmdb have any libraries available to read data in json format from an external source.  We are going to get a url to throw and get json format in return.

 

What protocol is used?  I don't have alot of jython experience but I wonder if someone can point me in the right direction.

 

 

0 Likes
3 Replies
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: json

So, basically, we get a url.  If I put the url into a browser, I get a data stream in json format.  I need some idea on how to go get it with ucmdb.  I see an http protocol but I don't see any adapters that seem to apply.

 

Does anyone have any ideas?

 

 

0 Likes
Highlighted
Established Member..
Established Member..

Re: json

What do you want to do with the JSON contents?

 

There is no OOTB package that I've ever seen that just goes and takes a JSON snippet, converts it and reads in the data. JSON is a standard protocol for web services, but the content parsing is going to be based on whoever coded the javascript object and if you wanted to automate this as "discovery" you're probably going to have to build a custom package.

 

CIf you want to interrogate the JSON links for discovery content? I suppose you could make use of the legacy API to create an integration point with the help of someone who could write the wrapper to convert and parse the result. If you need to create a package, I would hire Chris Satterthwaite from leveragediscovery.com.

 

Erik

 

 

effectualsystems.com
0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: json

Thank you.

 

This is data from our network team.  It contains relationships between servers and network devices.

 

Would the answer be better if they can give the stream to me in .xml?

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.