Search GLPI Via API

0

I want to do a search via API in which I return certain data according to the parameters that I define, ie:

To search for all items I get a Get where you send the following:

link

This search returns me all the tickets that exist.

What I want is to do this search where you define, for example, urgency = 5.

link

And that GET just returns the tickets with urgency equal to 5.

Example documentation: (Since the parameters and category vary from item to item)

http://path/to/glpi/apirest.php/search/Monitor?\
criteria\[0\]\[link\]\=AND\
\&criteria\[0\]\[itemtype\]\=Monitor\
\&criteria\[0\]\[field\]\=23\
\&criteria\[0\]\[searchtype\]\=contains\
\&criteria\[0\]\[value\]\=GSM\
\&criteria\[1\]\[link\]\=AND\
\&criteria\[1\]\[itemtype\]\=Monitor\
\&criteria\[1\]\[field\]\=1\
\&criteria\[1\]\[searchtype\]\=contains\
\&criteria\[1\]\[value\]\=W2\
\&range\=0-2\&&forcedisplay\[0\]\=1'
    
asked by anonymous 29.03.2018 / 13:42

0 answers