Disabling Tests

Use this API to disable one/more tests of a chosen component type.

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

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":"Microsoft SQL",

"tests":"SQL Blocker Processes, SQL locks"

}

Example with both Default and Optional Key Values:

{

"componenttype":"Microsoft SQL",

testtype:"configuration"

"tests":"Drives"

}

Body

Default:

{

"componenttype":"Component Type",

"tests":"comma-separated list of tests"

}

Optional:

{

"testtype":"performance/ configuration",

}

 

Success Response
Type Code Content

JSON

200

{

"Succeed": "Test(s) is/are disabled for this component type."

}

 

Failure Response
Type Code Content

JSON

401 UNAUTHORIZED

{

"Error": "One or more tests are not available for this component type."

}

Figure 1 : Disabling one/more tests of a chosen component type using Postman REST Client

Disabling Tests using cURL

To disable one/more tests of 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/disabletests" -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', 'tests':'comma-separated list of tests', 'testtype':'performance/configuration'}"

Note that the command specified above contains both the Default and Optional key values.

Figure 2 shows an example of disabling one/more tests of a chosen component type using cURL.

Figure 2 : Disabling one/more tests of a chosen component type using cURL