Based on your feedback on making device42 a well integrated inventory management system, we have published first iteration of the read APIs to extract data from device42 appliance.
Starting with v300 we added read APIs to get basic device details from device42 appliance using your favorite format and there were couple of enhancements in v311 regarding this. Here are some sample commands and outputs for the same.
Get basic device data
https://your-d42-appliance-url/api/device_detail/device_name/?format=json
Example using curl:
curl -i -H “Accept: application/json” -u username:password https://192.168.11.134/api/device_detail/hyper01/ –insecure
What is included
Above is a slightly formatted output image. Fields for a device(if available) that are returned:
name, serial #, asset #, hardware model, location(rack, start, room, building etc.), support vendor info.
Support Info is gotten from contract first. If there is no contract assigned, then it is taken from the last entered purchase for the device.