NAME

Zabbix7::API::HostGroup -- Zabbix group objects

SYNOPSIS

use Zabbix7::API::HostGroup;
# fetch a single hostgroup by ID
my $group = $zabbix->fetch_single('HostGroup', params => { groupids => [ 12345 ] });
# get the hosts which belong to it
my $hosts = $group->hosts;

DESCRIPTION

Handles CRUD for Zabbix group objects.

This is a subclass of Zabbix7::API::CRUDE; see there for inherited methods.

ATTRIBUTES

hosts

(read-only arrayref of Zabbix::API::Host objects)

This attribute is lazily populated with the hostgroup's hosts from the server.

SEE ALSO

Zabbix7::API::CRUDE.

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.