> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve logical scenario by ID and version



## OpenAPI

````yaml docs/avxcelerate/resource-manager-rest-api/explore.aws-pre-prod-api-resources-v1.json GET /v2/tsa/logical-scenarios/id/{scenario_id}/versions/{version}
openapi: 3.0.3
info:
  title: AVxcelerate Explore & Analyze
  version: 2026R1.1-beta-2
  description: >-
    This is the REST API for the Explore and Analyze (TSA) application that is
    part of the Ansys AVxcelerate Autonomy.<br/>The REST API provides endpoints
    to manage logical scenarios and their related entities including associated
    assets, algorithms, Analyze jobs, simulation reports and Airflow
    Pipeline.<br/>Please refer to the Analyze and Explore User Guide available
    on the Ansys documentation portal for examples of how to use the available
    REST API features.
  contact:
    name: support@ansys.com
    email: support@ansys.com
  license:
    name: Ansys software
servers:
  - url: https://{host}/api/tsa
    variables:
      host:
        default: api.example.com
        description: Host the API is served from
security:
  - apikey: []
tags:
  - name: Logical Scenario
    description: Endpoints to manage logical scenarios and associated data
  - name: Algorithms
    description: Endpoints to manage algorithms
  - name: Monitoring
    description: Endpoints to monitor the health of the services
  - name: Analyze
    description: >-
      The endpoints that manage the configuration and status of the job in the
      Explore and Analyze application.
  - name: Simulation Reports
    description: The endpoints used to generate simulation reports
  - name: Airflow Pipeline
    description: The endpoints used to trigger a test-space analytics run with Airflow.
  - name: SUT Configuration
    description: >-
      This section is not used in this REST API, please use the dedicated SUT
      REST API to manage SUT endpoints
paths:
  /v2/tsa/logical-scenarios/id/{scenario_id}/versions/{version}:
    get:
      tags:
        - Logical Scenario
      summary: Retrieve logical scenario by ID and version
      operationId: get_logical_scenario_id_and_version
      parameters:
        - name: scenario_id
          in: path
          required: true
          description: 'scenario_id of logical scenario '
          schema:
            type: string
        - name: version
          in: path
          required: true
          description: 'version of logical scenario '
          schema:
            type: string
        - required: false
          in: query
          description: >-
            fields to include in response. comma separated without space as a
            single string. example : id,label,parameters[].name
          name: fields
          schema:
            type: string
        - name: X-Fields
          in: header
          description: An optional fields mask
          schema:
            type: string
            format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogicalScenario'
        '400':
          description: >-
            Bad Request. Could not retrieve logical scenario. The server cannot
            or will not process the request due to something that is perceived
            to be a client error (e.g., malformed request syntax, invalid
            request message framing, or deceptive request routing).
        '404':
          description: >-
            Not Found. Could not retrieve logical scenario. The server cannot
            find the requested resource. In the browser, this means the URL is
            not recognized. In an API, this can also mean that the endpoint is
            valid but the resource itself does not exist. Servers may also send
            this response instead of 403 Forbidden to hide the existence of a
            resource from an unauthorized client. This response code is probably
            the most well known due to its frequent occurrence on the web.
components:
  schemas:
    LogicalScenario:
      properties:
        id:
          type: string
          description: ID of LogicalScenario.
          example: 14c1c565-7dca-4ef4-9180-bfbb1e0914a4
        name:
          type: string
          description: The name of this LogicalScenario.
          example: cut-out
        date:
          type: string
          format: date-time
          description: Modification date and time
          example: '2022-09-21T14:32:58'
        label:
          type: string
          description: The label of this LogicalScenario.
          example: Avoid Lateral Collision Scenario
        description:
          type: string
          description: The description of this LogicalScenario.
          example: One non-ego vehicle performing a cut-out maneuver
        parameters:
          type: array
          description: The parameters of this LogicalScenario.
          example:
            - description: velocity of the host
              name: velocity
              label: Relative Velocity
              data_type: double
              unit: m/s
          items:
            $ref: '#/components/schemas/ParameterDescription'
        kpis:
          type: array
          description: The kpis of this LogicalScenario.
          default: []
          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
          items:
            $ref: '#/components/schemas/KPI'
        file_format:
          type: string
          description: File format of concrete scenario file
          example: XOSC
        user_data:
          type: object
          description: User data for the logical scenario.
          example: '{}'
      type: object
    ParameterDescription:
      properties:
        name:
          type: string
          description: The name of this ParameterDescription.
          example: velocity
        label:
          type: string
          description: User friendly label for this parameter.
          example: Relative Velocity
        description:
          type: string
          description: The description of this ParameterDescription.
          example: velocity of the host
        data_type:
          type: string
          description: The type of this ParameterDescription
          example: double
          enum:
            - double
            - integer
            - string
            - boolean
        unit:
          type: string
          description: The unit of this ParameterDescription if applicable
          example: m/s
        constraints:
          type: array
          items:
            description: Constraints on the parameter
            allOf:
              - $ref: '#/components/schemas/Constraints'
        default_value:
          type: string
          description: The default value for this parameter
          example: '16.66666667'
      type: object
    KPI:
      properties:
        name:
          type: string
          description: The name of this KPI
          example: min_ttc
        label:
          type: string
          description: User friendly label for this KPI
          example: Minimum time to collision
        description:
          type: string
          description: The description of this KPI
          example: Minimum value of Time to Collision during simulation
        data_type:
          type: string
          description: The data type of this KPI
          example: double
          enum:
            - double
            - integer
            - string
            - boolean
        unit:
          type: string
          description: The unit of this KPI if applicable
          example: s
      type: object
    Constraints:
      properties:
        id:
          type: string
          description: The unique identifier of this constraint
          example: 8a674f3b-2dfa-4503-8767-f382568435c9
        rule:
          type: string
          description: Rule to be applied on the constraint
          example: '>='
          enum:
            - '=='
            - '>'
            - <
            - '>='
            - <=
            - <>
        formula:
          type: string
          description: Formula to be implemented in constraint
          example: '-3'
        group:
          type: integer
          description: Index of the corresponding constraint group (0-indexed)
          example: 0
      type: object
  securitySchemes:
    apikey:
      type: apiKey
      in: header
      name: Authorization

````