Environments
Retrieve environments
Test targets
Environments
Reports
Notifications
Private locations
Discoveries
Environments
Retrieve environments
get a list of all defined environments.
GET
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
environments
curl --request GET \
--url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/environments \
--header 'X-API-Key: <api-key>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "DEFAULT",
"testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "DEFAULT",
"discoveryUrl": "<string>",
"additionalHeaderFields": {},
"testAccount": {
"username": "<string>",
"password": "<string>",
"otpInitializerKey": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
},
"basicAuth": {
"username": "<string>",
"password": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
},
"privateLocation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"type": "<string>"
}
}
Authorizations
Path Parameters
ID of the test target to which the test report belongs to
Response
200 - application/json
environments
The response is of type object
.
curl --request GET \
--url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/environments \
--header 'X-API-Key: <api-key>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "DEFAULT",
"testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "DEFAULT",
"discoveryUrl": "<string>",
"additionalHeaderFields": {},
"testAccount": {
"username": "<string>",
"password": "<string>",
"otpInitializerKey": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
},
"basicAuth": {
"username": "<string>",
"password": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
},
"privateLocation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"type": "<string>"
}
}