Device42 to ServiceNow integration

Dan Belostotsk1
Mega Expert

Hi,
I'm looking into integrating Device42 with SNow, following the official Device42 documentation:

http://www.device42.com/integrations/service-now/

http://docs.device42.com/external-integrations/device42-servicenow-connector/

My questions are:

0: Have anyone used this integration? Another?

1: From the example mapping.xml file provided by the integration, I can a see the endpoint at <resource model="device" target="device42" method="GET" path="/api/1.0/devices/all"/>

"devices/all"   is looking on all devices, how can I address a specific subset of the devices for example: Physical Devices / Virtual Devices / etc ? How about other categories like DataCenter, IPAM etc?

2: I would like to import the dependency maps as well. Is this supported ootb? If not, how can I achieve it?

Thanks.

1 REPLY 1

mattaltieri
Kilo Contributor

Hi Dan,

The Device42 API documentation, which is regularly updated, can be found here -
http://api.device42.com/

It provides details on the end points and parameters for each object type, as well as information concerning available attributes and filters.


To apply a filter to a Device42 query, you can modify the "path=" in the mapping to include one or more available filter(s) from the API.

As an Example:   path="/api/1.0/devices/?type=virtual"
...would only return devices that are type = virtual

Available filters for devices can be found here:
http://api.device42.com/#get-all-devices-with-brief-output
Other objects besides devices can be filtered as well; the mapping simply needs to be modified to reflect the parameters of the respective endpoints.

Regarding viewing dependency maps ["Topology" as we reference them in the Device42 UI] from the API for external integrations, unfortunately that is not possible at this time. However, if desired, dependency related data can be queried for any desired use, for example maybe building a custom dashboard. The API will happily provide the Application Components or Services running on a given device, including information such as which ports are in use, have connections, etc.


As an example, if you wanted to know what dependencies existed for a given application, right down to the switch port that the server hosting the application is connected to, the API will happily provide that data. Each object has its own API documentation:



Application Components: http://api.device42.com/#get-application-components-by-id
Services:
http://api.device42.com/#get-services
Service Port:
http://api.device42.com/#get-service-ports

Of course, any other data point or object that exists in Device42 can be found and queried via the API in this manner, as well.



Please do follow up if you need more information, or do reach out to D42 support. We're always glad to help!