How to export the CI and CI related applications to a CSV

adamswbrown01
Tera Contributor

Hello,

 

I am working on a project where I need to extract Configuration Item (CI) dependencies (both first and second-degree) from ServiceNow using the API. I am particularly interested in cmdb_ci_appl and cmdb_ci_service CI types.

Is there a straightforward method or endpoint that would allow me to retrieve this hierarchical relationship data?

 

I'm looking to represent the CI dependency relationships similar to how it appears in the ServiceNow dependency map, but in a tabular format.

 

If this isn't possible, how do I export the applications that a server is related to? (such as Server01 --> EMAIL APP)

 

Any guidance or best practices for achieving this would be greatly appreciated!

Thank you!

2 REPLIES 2

VivekSattanatha
Mega Sage
Mega Sage

@adamswbrown01 

With CMDB Instance API you get CI data along with their inboud/outbound relationships.

https://developer.servicenow.com/dev.do#!/reference/api/utah/rest/cmdb-instance-api

 

Regards,

Vivek

How would I go about using that? 

Any good tips or things to look out for?