-
Documentation task
-
Resolution: Fixed
-
Trivial
-
4.0.0alpha4
-
None
-
Sprint 29
-
0
Zabbix API get methods support "search" parameter
After noticing that it's case-insensitive (even on the database with correct collation) I went to see the documentation and could not find anything about case-sensitivity of search patterns.
Request:
{
"auth": "bcf8d7b269174169777db7647c9e3e1c",
"id": 2,
"jsonrpc": "2.0",
"method": "hostgroup.get",
"params": {
"search": {
"name": "dev"
},
"selectHosts": ["host"]
}
}
generates the following SQL:
SELECT g.* FROM groups g WHERE ( ( UPPER(g.name) LIKE '%DEV%' ESCAPE '!' ) )