Displaying Test Names for a Component Type

Administrators can use this API to obtain all the performance/configuration tests pertaining to a chosen Component Type.

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

Method: POST

Content-Type: application/json

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

Example with Default key values:

{

"componenttype:"oracle database"

}

Example with Default and Optional Key values:

{

"componenttype":"oracle database",

"category":"enabled",

"testtype":"performance"

}

Body

Default:

{

"componenttype":"Component type"

}

Optional:

{

"category":"Enabled/Disabled/All",

"testtype":"Performance/Configuration"

}

 

Success Response
Type Code Content

JSON

200

{

"enabledTests": [

"Drives",

"Drives Capacity",

"Environment Entries",

"Hotfix/Patch",

"IP Settings Configuration",

"IPC Semaphores Configuration",

"IPC Shared Memory Configuration",

"Network Adapters Configuration",

"Operating System",

"Oracle Audit",

"Oracle Automatic Storage Management",

"Oracle Backup",

.

.

.

],

"disabledTests": [

"File Information"

]

}

Figure 1 : Displaying the tests for a chosen Component Type using Postman REST Client

Displaying Test Names for a Component Type using cURL

To display the tests for a chosen Component Type 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/showtests" -H "managerurl:http://<eG Manager IP:Port>" -H "user:<eG username or domain/eG username>" -H "pwd:Base64 encoded password" -H "Content-Type: application/json" --data-raw "{'componenttype':'Component type', 'category':'Enabled/Disabled/All', 'testtype':'Performance / Configuration'}"

Note that the command specified above contains both the Default and Optional key values. Figure 2 shows an example of displaying the tests for a chosen Component Type using cURL.

Figure 2 : Displaying the tests for a chosen Component Type using cURL