array hostgroup.getobjects(object filter)
This method allows to retrieve host groups that match the given filter criteria.
This method is deprecated and will be removed in the future. Please use hostgroup.get instead.
(object) Criteria to search by.
The following parameters are supported as search criteria.
|groupid||string/array||Host group IDs.|
|name||string/array||Names of the host groups.|
(array) Returns an array of objects with all properties.
Retrieve a host group called "Zabbix servers."
CHostGroup::getObject() in frontends/php/include/classes/api/services/CHostGroup.php.