Exclude Components for Test

Use this API to exclude one/more components for a test.

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

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":"2X Client Gateway",

"componentname":"client_1:80,client_2:80",

"testname":"2X Gateway Status"

}

Example with both Default and Optional Key Values:

{

"componenttype":"2X Client Gateway",

"componentname":"client_1:80,client_2:80",

"testtype":"configuration",

"testname":"Drives"

}

Body

Default:

{

"componenttype":"component type",

"componentname":"comma-separated list of component names:Port number",

"testname":"Test name"

}

Optional:

{

"testtype":"performance/ configuration",

}

 

Success Response
Type Code Content

JSON

200

{

"Succeed": "Component(s) is/are excluded successfully."

}

 

Failure Response
Type Code Content

JSON

401 UNAUTHORIZED

{

"Error": "One or more component names do not exist."

}

Excluding Components for Tests Using Postman REST Client

Figure 1 : Example for excluding Components for Test using Postman REST Client

Excluding Components for Test using cURL

To exclude one/more components for a test 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/excludecomponentsfortest" -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', 'componentname':'comma-separated list of component names:Port number', 'testname':'Test name', 'testtype':'performance/configuration'}"

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

Figure 2 shows an example of excluding one/more components for a test using cURL.

Excluding Components for Tests Using cURL

Figure 2 : Excluding one/more components for a test using cURL