object hostgroup.massremove(object parameters)
This method allows to remove related objects from multiple host groups.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object) Parameters containing the IDs of the host groups to update and the objects that should be removed.
|string/array||IDs of the host groups to be updated.|
|hostids||string/array||Hosts to remove from all host groups.|
|templateids||string/array||Templates to remove from all host groups.|
(object) Restituisce un oggetto contenente gli ID dei gruppi host aggiornati nella proprietà
Remove two hosts from the given host groups.
CHostGroup::massRemove() in ui/include/classes/api/services/CHostGroup.php.