iss #33 - Add searchGroup() method.
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user