# Variable ScenarioApi`Const`

ScenarioApi: {
_defaultBasePath: undefined;
scenarioGet: (
scenarioId: string,
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<AiScenario>;
scenarioQuery: (
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<AiScenarioList>;
scenarioQueryModels: (
scenarioId: string,
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<AiModelList>;
scenarioQueryVersions: (
scenarioId: string,
queryParameters: { labelSelector?: string[] },
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<AiVersionList>;
}

Representation of the 'ScenarioApi'. This API is part of the 'AI_CORE_API' service.

#### Type Declaration

- ##### _defaultBasePath: undefined

- ##### scenarioGet: (
  scenarioId: string,
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<AiScenario>

  Retrieve details for a scenario specified by scenarioId.

- ##### scenarioQuery: (
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<AiScenarioList>

  Retrieve a list of all available scenarios.

- ##### scenarioQueryModels: (
  scenarioId: string,
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<AiModelList>

  Retrieve information about all models available in LLM global scenario

- ##### scenarioQueryVersions: (
  scenarioId: string,
  queryParameters: { labelSelector?: string[] },
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<AiVersionList>

  Retrieve a list of scenario versions based on the versions of executables available within that scenario.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/ai-api/dist/client/AI_CORE_API/scenario-api.d.ts:7