Displaying Remote Agents

Use this API to display all the remote agents in the target environment.

URL: http://<eG manager IP:port>/api/eg/orchestration/showremoteagents

Method: POST

Inputs to be Specified
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

Not Applicable

 

Success Response
Type Code Content

JSON

200

[

{

"agentName": "mobilecollector",

"hostIp": "mobilecollector"

},

.

.

.

]

Figure 1 : Displaying the Remote agents configured in the target environment using Postman REST Client

Displaying Remote Agents using cURL

To display all the remote agents in the target environment through the REST API using cURL, the command should be specified in the following format:

curl --location --request POST "http://<eG Manager IP:Port>/api/eg/orchestration/showremoteagents" -H "managerurl:http://<eG Manager IP:Port>" -H "user:<eG username or domain/eG username>" -H "pwd:Base64 encoded password"

Figure 2 shows an example of displaying all the remote agents in the target environment using cURL.

Figure 2 : Displaying all the remote agents in the target environment using cURL