Displaying Maintenance Policies

Administrators can use this API to display all the maintenance policies configured in the target environment.

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

Method: POST

Inputs to be Specified
Parameters Key values Example

Header

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

{

"policyNames": [

"esx_maintenance",

"Manual_restart",

"VDI_maintenance"

]

}

Displaying Maintenance Policies Using Postman REST Client

Figure 1 : Displaying the Maintenance Policies configured in the target environment using Postman REST Client

Displaying Maintenance Policies using cURL

To display all the maintenance policies configured 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/showmaintenancepolicynames" -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 the maintenance policies configured in the target environment using cURL.

Displaying Maintenance Policies Using cURL

Figure 2 : Displaying the maintenance policies in the target environment using cURL