iss #33 - Add searchGroup() method.

This commit is contained in:
Alexander Zobnin
2015-06-29 13:46:01 +03:00
parent 73eb57ef56
commit fca214ad44
2 changed files with 19 additions and 1 deletions

View File

@@ -307,6 +307,24 @@ function (angular, _) {
};
/**
* Search group by name.
*
* @param {string} group group name
* @return {array} groups
*/
this.searchGroup = function (group) {
var params = {
output: ['name'],
search: {
name: group
},
searchWildcardsEnabled: true
};
return this.performZabbixAPIRequest('hostgroup.get', params);
};
/**
* Get hosts by names
*