API calls to Zenoss Resource Manager and Zenoss Cloud Collection Zones can be made using curl.
For Resource Manager specify the username and password in quotes with a colon between them using the -u switch
For Zenoss Cloud, specify your api key in the headers of the request
Request type and other headers
Set the request method to POST with -X
Set content-type to “application/json” in the headers
Send your JSON data with -d
If doing this in bash, escape your quotes inside your JSON object or wrap the entire object in quotes different from the quotes inside the JSON object (e.g. single-quotes outside, double-quotes inside or vice versa).
Specify the URL of the router