To authenticate your requests to the API, you need to include the "apikey" parameter in your HTTP requests. The value of the "apikey" parameter should be your API key.
https://apm-prod-server:8443/AppManager/xml/ListServer?apikey=7b5fde68148fa2419bc2f1a1ab87e757&type=all
https://apm-prod-server:8443/AppManager/xml/ListServer?apikey=7b5fde68148fa2419bc2f1a1ab87e757&type=server
Above URL will give data of all the server monitors. 'all' will give the entire Applications Manager's data.
You can also perform REST API calls through curl command from command line by specifying the required details in the following format:
curl -d "[API_REQUEST_PARAMETERS]" [API_URL]
curl -d "apikey=7b5fde68148fa2419bc2f1a1ab87e757&type=server" https://apm-prod-server:8443/AppManager/xml/ListServer?
Note: This command only works for POST requests.
For get requests, follow the below format:
curl "[API_URL]?[API_REQUEST_PARAMETERS]"
curl "http://localhost:9090/AppManager/xml/ShowPolledData?apikey=34ddf955a14953bbf7740c9f38d6be5d&resourceid=10000231&attributeID=402&period=1"
You can also perform REST API calls through wget command from command line by specifying the required details in the following format:
wget [COMPLETE_RESTAPI_URL]
wget https://apm-prod-server:8443/AppManager/xml/ListServer?apikey=7b5fde68148fa2419bc2f1a1ab87e757&type=server
A user logged into Applications Manager can view his API Key by clicking on the user photo to edit his details. If the user has an administrator account, the REST API key can be viewed in the Settings tab, under REST API.
An Admin user can regenerate an API key for him as well as for other users.
The REST API key is regenerated instantly. You should be prepared to modify the API Key in your web portal(s) that uses the API Key, soon after the regeneration, to insure that it continues to function correctly.
Browse through the below sections to know about the operations that can be performed using REST API: