The devicelist_xml
command returns an xml document containing a list on all assets and monitors that the user can access.
Syntax
http://localhost/KNM/extract.xsi?cmd=devicelist_xml&user=Admin
cmd |
devicelist_xml |
user |
KNM user username |
Returned data
An xml document.
XML fields
DEVICELIST |
Root of tree |
DEVICE |
Root of asset |
NAME |
Name of the asset |
DESC |
Description of the asset |
ID |
ID Number of asset |
MONITOR |
Root of asset |
ID |
ID Number of Monitor |
NAME |
Name of the monitor |
Example
<DEVICELIST>
<DEVICE>
<NAME>Fileserver</NAME>
<DESC>Office fileserver</DESC>
<ID>955</ID>
<MONITOR>
<ID>8</ID>
<NAME>Bandwidth test</NAME>
</MONITOR>
</DEVICE>
</DEVICELIST>