Import JSON endpoint

/api/open/nodes/import_from_json allows you to enrich the information associated to nodes. The provided information affects the nodes matching the specified ip field value. When there are no matches, new nodes are created.

Requirements and Restrictions

  1. The authenticated user must be in a group with admin role
  2. The input must be a JavaScript Object Notation (JSON) dictionary containing a nodes key whose value is an array of nodes information
  3. Nodes must have a value for the ip field
  4. In addition to ip, only the fields listed below and custom fields are considered. Every other provided field will be ignored. If you need to provide values for custom fields, please make sure that the names of these custom fields have been already created.
    label
    firmware_version
    vendor
    product_name
    serial_number
    os
    mac_address
    type
Figure 1. Example of the request

Example of the request