Retrieving Problem Distribution of Components
Use the URL specified below to retrieve the priority based problem distribution of the chosen components in the target environment using the eG REST API.
URL: http://<eG manager IP:port>/api/eg/analytics/getServerListProblemDistribution
Method: POST
Content-Type: application/json
Parameters | Key values | Example |
---|---|---|
Headers |
managerurl: Base URL of the eG Manager i.e., http://<IP address of the eG console:Port> user: eG username or domain/eG username pwd: Base64 encoded password |
{ serverlist":"Microsoft Windows:win112:NULL,Oracle Database Server:Oradb123:1521:egora" } |
Body |
Default: { "serverlist":"comma-separated } |
Type | Code | Content |
---|---|---|
JSON |
200 |
{ "Microsoft Exchange Online:MODERN_365_exo": [ { "date": "14/04", "CRITICAL": "0", "MAJOR": "0", "MINOR": "0" }, . . . } |
Type | Code | Content |
---|---|---|
JSON |
401 UNAUTHORIZED |
{"code": 401,"error": "Unauthorized user"} |
JSON |
500 Server Error |
{"code": 500,"error": " Server Error "} |
Figure 1 : Retrieving the priority based problem distribution of a chosen component using Postman REST Client
Retrieving Problem Distribution of Components using cURL
To retrieve the priority based problem distribution of the chosen components using cURL, the command should be specified in the following format:
curl -location -request POST "http://<eG Manager IP:Port>/api/eg/analytics/getServerListProblemDistribution" -H "user:<eG username or domain/eG username>" -H "pwd:Base64 encoded password" -H "managerurl:http://<eG Manager IP:Port>" -H"Content-Type:application/json" --data-raw "{\"serverlist\":\"comma-separated list of ComponentType:Component:Port/Null:SID\"}
Figure 2 shows an example of retrieving the priority based problem distribution of the chosen component using cURL.
Figure 2 : Retrieving the priority based problem distribution of a chosen component using cURL