Count items
glpi_count_itemsCount matching GLPI items without transferring full records, returning only totals for tickets, computers, users, and other assets. Use criteria filters to answer 'how many' queries.
Instructions
Count matching items without transferring them — answers 'how many' in one cheap call. Use glpi_list_search_options to discover criteria field IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| criteria | No | Array of {field, searchtype, value, link} — same shape as glpi_search | |
| itemtype | Yes | Item type, e.g. Ticket, Computer, User |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |