Can anyone help me get a group id via api. If i do below i endu p with a list of all groups and their id's, i just want to get groupid for a specific group that i pass as a group below:
groups_id = zapi.hostgroup.get({"extend":"groupid","filter": {"name":group.split(",")}})
groups_id = zapi.hostgroup.get({"extend":"groupid","filter": {"name":group.split(",")}})
Comment