NAME
Zabbix7::API::UserGroup -- Zabbix usergroup objects
SYNOPSIS
use Zabbix7::API::UserGroup;
my $group = $zabbix->fetch(...);
$group->delete;
DESCRIPTION
Handles CRUD for Zabbix usergroup objects.
This is a very simple subclass of Zabbix7::API::CRUDE
. Only the required methods are implemented (and in a very simple fashion on top of that).
METHODS
- name()
-
Accessor for the usergroup's name (the "name" attribute); returns the empty string if no name is set, for instance if the usergroup has not been created on the server yet.
- users()
-
Mutator for the usergroup's users.
- push()
-
This method handles extraneous
user => Zabbix7::API::User
attributes in the users array, transforming them intouserid
attributes, and pushing the users to the server if they don't exist already. The original user attributes are kept but hidden from theCRUDE
push
method, and restored after thepull
method is called.This means you can put
Zabbix7::API::User
objects in your data and the module will Do The Right Thing (assuming you agree with my definition of the Right Thing). Users that have been created this way will not be removed from the server if they are removed from the graph, however.Overridden from
Zabbix7::API::CRUDE
.
SEE ALSO
AUTHOR
SCOTTH
COPYRIGHT AND LICENSE
Copyright (C) 2011, 2012, 2013, 2014 SFR Copyright (C) 2020 Fabrice Gabolde Copyright (C) 2025 ScottH
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.