Access via Curl
Some AppNeta Monitoring Point models have a web hosted API for performing device management tasks. You can interact with the API via the interactive Admin API interface, programmatically, or via a command line tool like curl.
Creating the curl command line from the Admin API
To generate the curl command line from the Admin API interface:
- Access the Admin API.
- Navigate to the endpoint you want to use.
- Fill in the appropriate fields.
- Click Submit.
- The Curl section displays the equivalent curl command line.
- Copy the curl command line and paste it to a terminal command line (e.g. Terminal app on macOS).
- Add authentication parameters.
- Add “ -k -u <username>:<password>” to the command line.
- <username> - a username recognized by the Monitoring Point.
- <password> - the password associated with the username.
- Add “ -k -u <username>:<password>” to the command line.
- Optionally, format the output.
-
Add “ python -m json.tool” to the command line.
-
- Run the command.
- The output is the same as that returned using the Admin API interface.