I would like to create a PowerShell script for getting all certificates from a target host as a JSON array object like service.discovery does for services.
Than i would like to create item prototypes based on matches from the filter like service.info does.
the discovery script is executed at the agent through system.run and returns all certificates as JSON.
What i dont understand is
How do (for example) service.discovery pass the JSON array object to service.info as a parameter so items for each match can be created.
service.info only takes a parameter of [service,<param>] and not the JSON array object itself so it can be iterated.
Than i would like to create item prototypes based on matches from the filter like service.info does.
the discovery script is executed at the agent through system.run and returns all certificates as JSON.
What i dont understand is
How do (for example) service.discovery pass the JSON array object to service.info as a parameter so items for each match can be created.
service.info only takes a parameter of [service,<param>] and not the JSON array object itself so it can be iterated.
Though it pains me
that i need to make more than one request to the agent in 4.0 instead of being able to use the
Comment