object templategroup.massremove(object parameters)
This method allows to remove related objects from multiple template 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 template groups to update and the objects that should be removed.
Parameter | Type | Description |
---|---|---|
groupids (required) |
string/array | IDs of the template groups to be updated. |
templateids | string/array | Templates to remove from all template groups. |
"(object)" Restituisce un oggetto contenente gli ID del modello aggiornato gruppi nella proprietà groupids
.
Remove two templates from the given template groups.
Request:
{
"jsonrpc": "2.0",
"method": "hostgroup.massremove",
"params": {
"groupids": [
"5",
"6"
],
"hostids": [
"30050",
"30001"
]
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
CTemplateGroup::massRemove() in ui/include/classes/api/services/CTemplateGroup.php.