/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

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:

    ID, NIC, MAC, DHPC_ENABLED, DNSDOMAIN, DNSHOSTNAME
    • 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"
Please log in to comment

Answer this question or Comment on this question for clarity

Answers

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.
Answered 05/16/2018 by: JasonEgg
Red Belt

Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share