API calls to Zenoss Resource Manager and Zenoss Cloud Collection Zones can be made using the Linux
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
- The entire JSON body must be quoted when invoking
curlfrom the shell.
- JSON syntax requires that all strings are in double quotes.
- The easiest way to meet both requirements is to surround the JSON data in single quotes as shown below.
Specify the URL of the router