Get asset details
glpi_get_asset_detailsGet one GLPI asset (computer, monitor, printer, network equipment, phone, peripheral...) by type and ID together with its hardware details in a single call: operating system, processors, memory and disks by default, with names instead of IDs. Installed software and network ports are large on inventoried hosts, so they are returned only when asked for with sections ['softwares'] or ['networkports']. For the plain asset record use glpi_get_asset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Field set: 'essential' (default, trims internal GLPI fields) or 'all' | |
| format | No | Output format: 'json' (default) or 'markdown' (a table for listings, key/value lines for one item; returned in both the text and the structured result) | |
| assetId | Yes | Item ID | |
| sections | No | Sections to expand (default: devices, disks, softwares, networkports) | |
| asset_type | Yes | Asset itemtype, e.g. Computer, Monitor, Printer, NetworkEquipment, Software | |
| max_items_per_section | No | Rows kept per expanded section (default 25); the rest is reported as a count |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| note | No | Pagination hint: how to fetch the next page | |
| count | No | Items in this page | |
| format | No | 'markdown' when data holds the markdown rendering |