Scripting Question

KACE API Inventory Definition for Machine

05/09/2018 560 views
The documentation suggests that the machine JSON object definition contains an optional attribute 'netmask'.

How do I read it, if it does exist?

A GET request to /api/inventory/machines/{machine_id} returns only a subset of what is described in the machine definition.  

Am I missing something?
2 Comments   [ + ] Show comments


  • I thought this was because you didn't include "shaping" but also can't find netmask even when I use:
    api/inventory/machines/{device_id}?shaping=machine all,machine_nics all
  • Same here.

    These are the only attributes I get back for Machine_nics when running the same API call:

    • There is another table in the database called "NICS_IPS" which contains netmask information, but I wasn't able to get the API to report on it. I got the error "Shaping specified for unknown join table: NICS_IPS"

All Answers

The API documentation is... well... not good. I'm not surprised if there's wrong information in it. Unfortunately, every time I've asked support about the API they refer me to the documentation (or even posts on ITNinja!). However, the API is not officially supported so it makes sense support would not spend much time on these questions.
Answered 05/16/2018 by: JasonEgg
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ