rrg92 / power-zabbix

Powershell module with lot of cmdlets that implements ZABBIX API, extra and auxiliary cmdlets
4 stars 2 forks source link

Problem function Creat-ZabbixHost #7

Open APASTANA opened 2 years ago

APASTANA commented 2 years ago

Hi, I can't create hosts. I noticed that the Create-ZabbixHost function has a problem in the code that doesn't receive the parameter hostgrupid and templateid. Is there any solution? Thanks!

rrg92 commented 2 years ago

Templateid is not supported yet. For groups you can use -Groups parameter and pass list of groups.

If want use TempalteId, try call directly the CallZabbixURL function and pass the API data in -data parameter.