/build/static/layout/Breadcrumb_cap_w.png

KACE API Inventory Definition for Machine

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 - JasonEgg 6 years ago
  • Same here.

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

    ID, NIC, MAC, DHPC_ENABLED, DNSDOMAIN, DNSHOSTNAME - ndelo 6 years ago
    • 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" - JasonEgg 6 years ago

Answers (1)

Posted by: JasonEgg 6 years ago
Red Belt
0
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.

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:

Share

 
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