Get Asset Details

Use the following API call to view the list of assets:

GET /settings/assets/:asset_mac_address.xml
GET /settings/assets/:asset_mac_address.json

XML Request example

curl -i -u user:userpass http://onapp.test/settings/assets/:asset_mac_address.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'


JSON Request example

curl -i -u user:userpass http://onapp.test/settings/assets/:asset_mac_address.json -H 'Accept: application/json' -H 'Content-type: application/json'

XML Response example

<?xml version="1.0" encoding="UTF-8"?>
<asset>
  <mac nil="true"/>
  <disks type="array">
    <disk>
      <name>disk1name1</name>
      <scsi>disk1scsi</scsi>
    </disk>
    <disk>
      <name>disk3name</name>
      <scsi>disk3scsi</scsi>
    </disk>
  </disks>
  <nics type="array">
    <nic>
      <name>nic1name</name>
      <mac>nic1mac</mac>
    </nic>
    <nic>
      <name>eth1 
</name>
      <mac>00:1a:64:62:41:e1</mac>
    </nic>
  </nics>
  <pcis type="array">
    <pci>
      <name>Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet [14e4:1648] (rev 10)</name>
      <pci>02:01.0</pci>
    </pci>
  </pcis>
</asset>

Where:

mac - asset MAC address

disk - an array of asset's disks along with the following details:

  • name - disk label
  • scsi - SCSI inquiry product revision number

nics - an array of asset's network interfaces along with their details:

name - NIC name

mac - NIC MAC address

pcis - an array of NIC PCIs along with the following details:

name - PCI label

pci - NIC PCI