Retrieve details of a specific logical scenario by scenario name
curl --request GET \
--url https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name} \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: <api-key>");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);{
"id": "14c1c565-7dca-4ef4-9180-bfbb1e0914a4",
"name": "cut-out",
"date": "2022-09-21T14:32:58",
"label": "Avoid Lateral Collision Scenario",
"description": "One non-ego vehicle performing a cut-out maneuver",
"parameters": [
{
"description": "velocity of the host",
"name": "velocity",
"label": "Relative Velocity",
"data_type": "double",
"unit": "m/s"
}
],
"kpis": [
{
"description": "Minimum value of Time to Collision during simulation",
"name": "min_ttc",
"label": "Minimum time to collision",
"target": "application/adp/test/evaluation/kpi/closed_loop_evaluation/closed_loop_kpi_evaluation.test.sh",
"data_type": "double",
"unit": "s"
}
],
"file_format": "XOSC",
"user_data": "{}"
}Retrieve details of a specific logical scenario by scenario name
GET
/
v2
/
tsa
/
logical-scenarios
/
{scenario_name}
Retrieve details of a specific logical scenario by scenario name
curl --request GET \
--url https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name} \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://{host}/api/tsa/v2/tsa/logical-scenarios/{scenario_name}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: <api-key>");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);{
"id": "14c1c565-7dca-4ef4-9180-bfbb1e0914a4",
"name": "cut-out",
"date": "2022-09-21T14:32:58",
"label": "Avoid Lateral Collision Scenario",
"description": "One non-ego vehicle performing a cut-out maneuver",
"parameters": [
{
"description": "velocity of the host",
"name": "velocity",
"label": "Relative Velocity",
"data_type": "double",
"unit": "m/s"
}
],
"kpis": [
{
"description": "Minimum value of Time to Collision during simulation",
"name": "min_ttc",
"label": "Minimum time to collision",
"target": "application/adp/test/evaluation/kpi/closed_loop_evaluation/closed_loop_kpi_evaluation.test.sh",
"data_type": "double",
"unit": "s"
}
],
"file_format": "XOSC",
"user_data": "{}"
}Response
Success
The kpis of this LogicalScenario.
Show child attributes
Show child attributes
Example:
[
{
"description": "Minimum value of Time to Collision during simulation",
"name": "min_ttc",
"label": "Minimum time to collision",
"target": "application/adp/test/evaluation/kpi/closed_loop_evaluation/closed_loop_kpi_evaluation.test.sh",
"data_type": "double",
"unit": "s"
}
]
Was this page helpful?