Creating an event with PowerShell
Follow this procedure to interact with the Zenoss Resource Manager or Collection Zone API using PowerShell; the example here is to create an event, but it can easily be modified by changing the router URL and the JSON payload.
Build headers for authorization
Create the JSON format (nested JSON in PowerShell):
Test the output:
(Optional) Disable SSL certificate validation:
Invoke the Web Request:
See the response