openapi: 3.0.0 info: title: AI Core description: "Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models.\n" version: 2.42.0 x-sap-shortText: Create and manage AI scenarios, trainings, deployments, and artifacts in SAP AI Core. servers: - url: https://api.ai.{region}.ml.hana.ondemand.com/v2 description: Production endpoint for SAP AI Core variables: region: enum: - prod.eu-central-1.aws - prodeuonly.eu-central-1.aws - prod.us-east-1.aws - prod.ap-northeast-1.aws - prod-ap11.ap-southeast-1.aws - prod-ap20.australiaeast.azure - prod.ap-southeast-2.aws - prod-eu20.westeurope.azure - prod-ap30.australia-southeast1.gcp - prod-in30.asia-south1.gcp - prod-sa30.me-central2.gcp - prod-us21.eastus.azure - prod-eu30.europe-west3.gcp - prod-us30.us-central1.gcp - prod-br10.sa-east-1.aws default: prod.eu-central-1.aws externalDocs: description: Documentation for SAP AI Core url: https://help.sap.com/docs/AI_CORE?version=CLOUD security: - Oauth2: [] tags: - name: Scenario description: Access to scenarios - name: Executable description: Access to executables - name: Configuration description: Access to configurations for executions and deployments - name: Deployment description: Access to deployments - name: Execution description: Access to executions - name: Artifact description: Access to artifacts, e.g. datasets and models - name: Docker Registry Secret description: Access to dockerRegistrySecrets - name: Metrics description: Access metrics of training runs - name: KPI description: Access to usage information for a tenant - name: Object Store Secret description: Access to objectStoreSecrets - name: Secret description: Access to generic secrets - name: Tenant description: Access to tenant information - name: Meta description: Metadata about API provider and capabilities - name: Execution Schedule description: Access to executionSchedules paths: /lm/artifacts: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' post: tags: - Artifact summary: Register artifact description: Register an artifact for use in a configuration, for example a model or a dataset. operationId: artifact.create requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiArtifactPostData' responses: '201': description: The artifact has been registered successfully headers: Location: description: URL of the registered artifact schema: $ref: '#/components/schemas/AiUrl' Content-Location: description: URL of the registered artifact. This header is deprecated. Location header shall be used instead. deprecated: true schema: $ref: '#/components/schemas/AiUrl' content: application/json: schema: $ref: '#/components/schemas/AiArtifactCreationResponse' '400': $ref: '#/components/responses/AiBadRequest' get: tags: - Artifact summary: Get list of artifacts description: 'Retrieve a list of artifacts that matches the specified filter criteria. Filter criteria include scenario ID, execution ID, an artifact name, artifact kind, or artifact labels. Use top/skip parameters to paginate the result list. Search by substring of artifact name or description, if required. ' operationId: artifact.query parameters: - $ref: '#/components/parameters/AiqueryScenarioId' - $ref: '#/components/parameters/AiqueryExecutionId' - $ref: '#/components/parameters/AiqueryArtifactName' - $ref: '#/components/parameters/AiqueryArtifactKind' - $ref: '#/components/parameters/AiartifactLabelSelector' - $ref: '#/components/parameters/Aitop' - $ref: '#/components/parameters/Aiskip' - $ref: '#/components/parameters/AiquerySearch' - $ref: '#/components/parameters/AiquerySearchCaseInsensitive' - $ref: '#/components/parameters/AiqueryArtifactExpand' responses: '200': description: A list of artifacts content: application/json: schema: $ref: '#/components/schemas/AiArtifactList' '400': $ref: '#/components/responses/AiBadRequest' /lm/artifacts/{artifactId}: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiartifactId' - $ref: '#/components/parameters/AiqueryArtifactExpand' get: tags: - Artifact summary: Get artifact by ID description: Retrieve details for artifact with artifactId. operationId: artifact.get responses: '200': description: An artifact content: application/json: schema: $ref: '#/components/schemas/AiArtifact' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' /lm/configurations: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Configuration summary: Get list of configurations description: 'Retrieve a list of configurations. Filter results by scenario ID or a list of executable IDs. Search for configurations containing the search string as substring in the configuration name. ' operationId: configuration.query parameters: - $ref: '#/components/parameters/AiqueryScenarioId' - $ref: '#/components/parameters/Aitop' - $ref: '#/components/parameters/Aiskip' - $ref: '#/components/parameters/AiexecutableIdsList' - $ref: '#/components/parameters/AiquerySearch' - $ref: '#/components/parameters/AiquerySearchCaseInsensitive' - $ref: '#/components/parameters/AiqueryConfigurationExpand' responses: '200': description: A list of configurations content: application/json: schema: $ref: '#/components/schemas/AiConfigurationList' '400': $ref: '#/components/responses/AiBadRequest' post: tags: - Configuration summary: Create configuration description: 'Create a new configuration linked to a specific scenario and executable for use in an execution or deployment. ' operationId: configuration.create requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiConfigurationBaseData' responses: '201': description: The created configuration headers: Location: description: URL of the created configuration schema: $ref: '#/components/schemas/AiUrl' content: application/json: schema: $ref: '#/components/schemas/AiConfigurationCreationResponse' '400': $ref: '#/components/responses/AiBadRequest' /lm/configurations/{configurationId}: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiconfigurationId' - $ref: '#/components/parameters/AiqueryConfigurationExpand' get: tags: - Configuration summary: Get configuration by ID description: Retrieve details for configuration with configurationId. operationId: configuration.get responses: '200': content: application/json: schema: $ref: '#/components/schemas/AiConfiguration' description: A configuration '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' /lm/deployments: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Deployment summary: Get list of deployments description: 'Retrieve a list of deployments that match the specified filter criteria. Filter criteria include a list of executableIds, a scenarioId, a configurationId, or a deployment status. With top/skip parameters it is possible to paginate the result list. With select parameter it is possible to select only status. ' operationId: deployment.query parameters: - $ref: '#/components/parameters/AiexecutableIdsList' - $ref: '#/components/parameters/AiqueryConfigurationId' - $ref: '#/components/parameters/AiqueryScenarioId' - $ref: '#/components/parameters/Aistatus' - $ref: '#/components/parameters/Aitop' - $ref: '#/components/parameters/Aiskip' - $ref: '#/components/parameters/Aiselect' responses: '200': description: A list of deployments content: application/json: schema: $ref: '#/components/schemas/AiDeploymentList' '400': $ref: '#/components/responses/AiBadRequest' post: tags: - Deployment summary: Create deployment description: 'Create a deployment using the configuration specified by configurationId after synchronously checking the correctness of the configuration. ' operationId: deployment.create requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiDeploymentCreationRequest' responses: '202': description: The deployment has been scheduled successfully headers: Location: description: URL of the scheduled deployment schema: $ref: '#/components/schemas/AiUrl' content: application/json: schema: $ref: '#/components/schemas/AiDeploymentCreationResponse' '400': $ref: '#/components/responses/AiBadRequest' patch: tags: - Deployment summary: Patch multiple deployments description: Update status of multiple deployments. stop or delete multiple deployments. operationId: deployment.batch_modify requestBody: content: application/merge-patch+json: schema: $ref: '#/components/schemas/AiDeploymentBulkModificationRequest' required: true responses: '202': description: The modification of the deployments have been scheduled successfully content: application/json: schema: $ref: '#/components/schemas/AiDeploymentBulkModificationResponse' '400': $ref: '#/components/responses/AiBadRequest' /lm/deployments/{deploymentId}: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AideploymentId' get: tags: - Deployment summary: Get information about specific deployment description: Retrieve details for execution with deploymentId. operationId: deployment.get parameters: - $ref: '#/components/parameters/Aiselect' responses: '200': description: Information about the deployment content: application/json: schema: $ref: '#/components/schemas/AiDeploymentResponseWithDetails' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' patch: tags: - Deployment summary: Update target status or configuration of a deployment description: 'Update target status of a deployment to stop a deployment or change the configuration to be used by the deployment after synchronously checking the correctness of the configuration. A change of configuration is only allowed for RUNNING and PENDING deployments. ' operationId: deployment.modify requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiDeploymentModificationRequest' responses: '202': description: The modification of the deployment has been scheduled successfully content: application/json: schema: $ref: '#/components/schemas/AiDeploymentModificationResponse' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' '412': $ref: '#/components/responses/AiPreconditionFailed' delete: tags: - Deployment summary: Mark deployment as deleted description: Mark deployment with deploymentId as deleted. operationId: deployment.delete responses: '202': description: The deletion of the deployment has been scheduled successfully content: application/json: schema: $ref: '#/components/schemas/AiDeploymentDeletionResponse' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' '412': $ref: '#/components/responses/AiPreconditionFailed' /lm/executions: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Execution summary: Get list of executions description: 'Retrieve a list of executions that match the specified filter criteria. Filter criteria include a list of executableIds, a scenarioId, a configurationId, or a execution status. With top/skip parameters it is possible to paginate the result list. With select parameter it is possible to select only status. ' operationId: execution.query parameters: - $ref: '#/components/parameters/AiexecutableIdsList' - $ref: '#/components/parameters/AiqueryConfigurationId' - $ref: '#/components/parameters/AiqueryScenarioId' - $ref: '#/components/parameters/AiqueryExecutionScheduleId' - $ref: '#/components/parameters/Aistatus' - $ref: '#/components/parameters/Aitop' - $ref: '#/components/parameters/Aiskip' - $ref: '#/components/parameters/Aiselect' responses: '200': description: A list of executions content: application/json: schema: $ref: '#/components/schemas/AiExecutionList' '400': $ref: '#/components/responses/AiBadRequest' post: tags: - Execution summary: Create execution description: Create an execution using the configuration specified by configurationId. operationId: execution.create requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiEnactmentCreationRequest' responses: '202': description: The execution has been scheduled successfully headers: Location: description: URL of the scheduled execution schema: $ref: '#/components/schemas/AiUrl' content: application/json: schema: $ref: '#/components/schemas/AiExecutionCreationResponse' '400': $ref: '#/components/responses/AiBadRequest' patch: tags: - Execution summary: Patch multiple executions description: Patch multiple executions' status to stopped or deleted. operationId: execution.batch_modify requestBody: content: application/merge-patch+json: schema: $ref: '#/components/schemas/AiExecutionBulkModificationRequest' required: true responses: '202': description: The modification of the executions have been scheduled successfully content: application/json: schema: $ref: '#/components/schemas/AiExecutionBulkModificationResponse' '400': $ref: '#/components/responses/AiBadRequest' /lm/executions/{executionId}: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiexecutionId' get: tags: - Execution summary: Get information about a specific execution description: Retrieve details for execution with executionId. operationId: execution.get parameters: - $ref: '#/components/parameters/Aiselect' responses: '200': description: Information about the execution content: application/json: schema: $ref: '#/components/schemas/AiExecutionResponseWithDetails' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' patch: tags: - Execution summary: Update target status of an execution description: Update target status of the execution to stop an execution. operationId: execution.modify requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiExecutionModificationRequest' responses: '202': description: The modification of the execution has been scheduled successfully content: application/json: schema: $ref: '#/components/schemas/AiExecutionModificationResponse' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' '412': $ref: '#/components/responses/AiPreconditionFailed' delete: tags: - Execution summary: Mark execution as deleted description: Mark the execution with executionId as deleted. operationId: execution.delete responses: '202': description: The deletion of the execution has been scheduled successfully content: application/json: schema: $ref: '#/components/schemas/AiExecutionDeletionResponse' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' '412': $ref: '#/components/responses/AiPreconditionFailed' /lm/executionSchedules: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Execution Schedule summary: Get list of execution schedules description: 'Retrieve a list of execution schedules that match the specified filter criteria. Filter criteria include executionScheduleStatus or a configurationId. With top/skip parameters it is possible to paginate the result list. ' operationId: execution_schedule.query parameters: - $ref: '#/components/parameters/AiqueryConfigurationId' - $ref: '#/components/parameters/AiqueryExecutionScheduleStatus' - $ref: '#/components/parameters/Aitop' - $ref: '#/components/parameters/Aiskip' responses: '200': description: A list of execution schedules content: application/json: schema: $ref: '#/components/schemas/AiExecutionScheduleList' '400': $ref: '#/components/responses/AiBadRequest' post: tags: - Execution Schedule summary: Create execution schedule description: Create an execution schedule using the configuration specified by configurationId, and schedule. operationId: execution_schedule.create requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiExecutionScheduleCreationData' responses: '202': description: The execution schedule has been created successfully headers: Location: description: URL of the execution schedule schema: $ref: '#/components/schemas/AiUrl' content: application/json: schema: $ref: '#/components/schemas/AiExecutionScheduleCreationResponse' '400': $ref: '#/components/responses/AiBadRequest' /lm/executionSchedules/{executionScheduleId}: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiexecutionScheduleId' get: tags: - Execution Schedule summary: Get information about an execution schedule description: Retrieve details for execution schedule with executionScheduleId. operationId: execution_schedule.get responses: '200': description: Information about the execution schedule content: application/json: schema: $ref: '#/components/schemas/AiExecutionSchedule' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' patch: tags: - Execution Schedule summary: Update an execution schedule description: Update details of an execution schedule operationId: execution_schedule.modify requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiExecutionScheduleModificationRequest' responses: '202': description: The execution schedule has been modified successfully content: application/json: schema: $ref: '#/components/schemas/AiExecutionScheduleModificationResponse' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' delete: tags: - Execution Schedule summary: Delete execution schedule description: Delete the execution schedule with executionScheduleId. operationId: execution_schedule.delete responses: '202': description: The execution schedule has been deleted successfully content: application/json: schema: $ref: '#/components/schemas/AiExecutionScheduleDeletionResponse' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' /lm/scenarios: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Scenario summary: Get list of scenarios description: Retrieve a list of all available scenarios. operationId: scenario.query responses: '200': description: A list of scenarios content: application/json: schema: $ref: '#/components/schemas/AiScenarioList' /lm/scenarios/{scenarioId}: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiscenarioId' get: tags: - Scenario summary: Get scenario by id description: Retrieve details for a scenario specified by scenarioId. operationId: scenario.get responses: '200': description: A scenario content: application/json: schema: $ref: '#/components/schemas/AiScenario' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' /lm/scenarios/{scenarioId}/executables: parameters: - $ref: '#/components/parameters/AiscenarioId' - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Executable summary: Get list of executables description: 'Retrieve a list of executables for a scenario. Filter by version ID, if required. ' operationId: executable.query parameters: - $ref: '#/components/parameters/AiversionIdQueryParam' responses: '200': description: A list of executables content: application/json: schema: $ref: '#/components/schemas/AiExecutableList' '400': $ref: '#/components/responses/AiBadRequest' /lm/scenarios/{scenarioId}/executables/{executableId}: parameters: - $ref: '#/components/parameters/AiscenarioId' - $ref: '#/components/parameters/AiexecutableId' - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Executable summary: Get details about specific executable description: 'Retrieve details about an executable identified by executableId belonging to a scenario identified by scenarioId. ' operationId: executable.get responses: '200': description: An Executable content: application/json: schema: $ref: '#/components/schemas/AiExecutable' '400': $ref: '#/components/responses/AiBadRequest' '404': $ref: '#/components/responses/AiNotFound' /lm/scenarios/{scenarioId}/versions: parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiscenarioId' - $ref: '#/components/parameters/AilabelSelector' get: tags: - Scenario summary: Get list of versions for scenario description: 'Retrieve a list of scenario versions based on the versions of executables available within that scenario. ' operationId: scenario.query_versions responses: '200': description: A list of versions for the scenario content: application/json: schema: $ref: '#/components/schemas/AiVersionList' '400': $ref: '#/components/responses/AiBadRequest' /lm/scenarios/{scenarioId}/models: parameters: - $ref: '#/components/parameters/AiscenarioId' - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Scenario summary: Get information about all models available in LLM global scenario description: Retrieve information about all models available in LLM global scenario operationId: scenario.query_models responses: '200': description: The request was successful and information of all LLM models will be returned. content: application/json: schema: $ref: '#/components/schemas/AiModelList' '400': $ref: '#/components/responses/AiBadRequest' /lm/artifacts/$count: get: tags: - Artifact summary: Get number of artifacts description: 'Retrieve the number of available artifacts that match the specified filter criteria. Filter criteria include a scenarioId, executionId, an artifact name, artifact kind, or artifact labels. Search by substring of artifact name or description is also possible. ' operationId: artifact.count parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiqueryScenarioId' - $ref: '#/components/parameters/AiqueryExecutionId' - $ref: '#/components/parameters/AiqueryArtifactName' - $ref: '#/components/parameters/AiqueryArtifactKind' - $ref: '#/components/parameters/AiquerySearch' - $ref: '#/components/parameters/AiquerySearchCaseInsensitive' - $ref: '#/components/parameters/AiartifactLabelSelector' responses: '200': description: Number of artifacts content: text/plain: schema: type: integer '400': $ref: '#/components/responses/AiBadRequest' /lm/configurations/$count: get: tags: - Configuration summary: Get number of configurations description: 'Retrieve the number of available configurations that match the specified filter criteria. Filter criteria include a scenarioId or executableIdsList. Search by substring of configuration name is also possible. ' operationId: configuration.count parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiqueryScenarioId' - $ref: '#/components/parameters/AiquerySearch' - $ref: '#/components/parameters/AiquerySearchCaseInsensitive' - $ref: '#/components/parameters/AiexecutableIdsList' responses: '200': description: Number of configurations content: text/plain: schema: type: integer '400': $ref: '#/components/responses/AiBadRequest' /lm/executions/$count: get: tags: - Execution summary: Get number of executions description: 'Retrieve the number of available executions. The number can be filtered by scenarioId, configurationId, executableIdsList or by execution status. ' operationId: execution.count parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiexecutableIdsList' - $ref: '#/components/parameters/AiqueryConfigurationId' - $ref: '#/components/parameters/AiqueryScenarioId' - $ref: '#/components/parameters/AiqueryExecutionScheduleId' - $ref: '#/components/parameters/Aistatus' responses: '200': description: Number of executions content: text/plain: schema: type: integer '400': $ref: '#/components/responses/AiBadRequest' /lm/deployments/$count: get: tags: - Deployment summary: Get number of deployments description: 'Retrieve the number of available deployments. The number can be filtered by scenarioId, configurationId, executableIdsList or by deployment status. ' operationId: deployment.count parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiexecutableIdsList' - $ref: '#/components/parameters/AiqueryConfigurationId' - $ref: '#/components/parameters/AiqueryScenarioId' - $ref: '#/components/parameters/Aistatus' responses: '200': description: Number of deployments content: text/plain: schema: type: integer '400': $ref: '#/components/responses/AiBadRequest' /lm/executionSchedules/$count: get: tags: - Execution Schedule summary: Get number of execution schedules description: 'Retrieve the number of scheduled executions. The number can be filtered by configurationId or executionScheduleStatus. ' operationId: execution_schedule.count parameters: - $ref: '#/components/parameters/AiresourceGroupHeader' - $ref: '#/components/parameters/AiqueryConfigurationId' - $ref: '#/components/parameters/AiqueryExecutionScheduleStatus' responses: '200': description: Number of execution schedules content: text/plain: schema: type: integer '400': $ref: '#/components/responses/AiBadRequest' /lm/meta: get: tags: - Meta summary: Meta information about API description: Meta information about an implementation of AI API, describing its capabilities, limits and extensions operationId: meta.get responses: '200': description: Description of the implementation content: application/json: schema: $ref: '#/components/schemas/MetaCapabilities' '404': $ref: '#/components/responses/MetaNotFound' /lm/metrics: get: summary: 'Get metrics according to specified filter conditions. ' description: "Retrieve metrics, labels, or tags according to filter conditions. \nOne query parameter is mandatory, either execution ID or filter. \nUse up to 10 execution IDs in a query parameter.\nWith top/skip parameters it is possible to paginate the result list.\n" tags: - Metrics parameters: - $ref: '#/components/parameters/TrcktrackingResourceGroupHeader' - $ref: '#/components/parameters/TrckqueryFilter' - $ref: '#/components/parameters/TrckexecutionIds' - $ref: '#/components/parameters/TrckmetricAttributeSelector' - $ref: '#/components/parameters/TrcktagFilters' - $ref: '#/components/parameters/Trcktop' - $ref: '#/components/parameters/Trckskip' responses: '200': content: application/json: schema: $ref: '#/components/schemas/TrckGetMetricResourceList' description: List of tracking metadata, where each item includes metrics, labels, tags and customInfo. If $select query parameter is specified, each item will include only the resources specified in $select. '400': $ref: '#/components/responses/TrckBadRequest' '501': $ref: '#/components/responses/TrckNotImplemented' operationId: metrics.find patch: summary: Create or update metrics, tags, or labels description: 'Update or create metrics, tags, or labels associated with an execution. ' parameters: - $ref: '#/components/parameters/TrcktrackingResourceGroupHeader' requestBody: content: application/merge-patch+json: schema: $ref: '#/components/schemas/TrckMetricResource' required: true tags: - Metrics responses: '204': description: Metrics was successfully updated/created '400': $ref: '#/components/responses/TrckBadRequest' '413': $ref: '#/components/responses/TrckPayloadTooLarge' operationId: metrics.patch delete: summary: Delete metrics, tags, or labels description: Delete metrics, tags, or labels associated with an execution. parameters: - $ref: '#/components/parameters/TrcktrackingResourceGroupHeader' - $ref: '#/components/parameters/TrckexecutionId' tags: - Metrics responses: '200': content: application/json: schema: $ref: '#/components/schemas/TrckDeleteMetricsResponse' description: Metric Resource was successfully deleted '404': $ref: '#/components/responses/TrckNotFound' operationId: metrics.delete /analytics/kpis: get: tags: - KPI parameters: - $ref: '#/components/parameters/KpiquerySelect' summary: Get KPIs description: "Retrieve the number of executions, artifacts, and deployments \nfor each resource group, scenario, and executable. The columns to be returned can be specified in a query parameter.\n" operationId: kpi.get responses: '200': description: KPIs content: application/json: schema: $ref: '#/components/schemas/KpiResultSet' examples: example-1: value: header: - ResourceGroup - Executions - Artifacts - Deployments rows: - - 00112233-4455-6677-8899-aabbccddeeff - 30 - 30 - 3 '400': $ref: '#/components/responses/KpiInvalidRequest' '404': $ref: '#/components/responses/KpiNotFound' '429': $ref: '#/components/responses/KpiTooManyRequests' /lm/dataset/files/{path}: parameters: - $ref: '#/components/parameters/DSetpath' - $ref: '#/components/parameters/DSetresourceGroupHeader' put: tags: - File summary: Upload file (size <= 100Mb) operationId: file.upload description: "Endpoint for uploading file. The maximum file size depends on the actual implementation \nbut must not exceed 100MB. The actual file size limit can be obtained by querying \nthe AI API Runtime Capabilities Endpoint and checking the limits in the section of the `fileUpload` extension.\n\n Path cannot be a prefix, it must be a path to an object.\nClients may group the objects in any manner they choose by specifying path prefixes.\n\nAllowed mime-types will be decided by the implementation.\nContent-Type header can be set to \"application/octet-stream\" but the implementation is responsible \nfor detecting the actual mime type and checking against the allowed list of mime types. \nFor security reasons, implementations cannot trust the mime type sent by the client.\n\nExample URLs: \n/files/dar/schemas/schema.json \n/files/icr/datasets/training/20201001/20201001-01.csv \n/files/icr/datasets/training/20201001/20201001-02.csv\ \ \n/files/mask-detection/training/mask-detection-20210301.tar.gz" parameters: - $ref: '#/components/parameters/DSetoverwrite' requestBody: description: Body of the file upload request content: '*/*': schema: {} responses: '201': $ref: '#/components/responses/DSetFileCreated' '400': $ref: '#/components/responses/DSetBadRequest' '409': $ref: '#/components/responses/DSetConflict' '413': $ref: '#/components/responses/DSetRequestTooLarge' delete: tags: - File summary: Delete file operationId: file.delete description: Delete the file specified by the path parameter. responses: '204': $ref: '#/components/responses/DSetSuccess' '400': $ref: '#/components/responses/DSetBadRequest' '404': $ref: '#/components/responses/DSetNotFound' get: tags: - File summary: Download file operationId: file.download description: Endpoint for downloading file. The path must point to an individual file. responses: '200': $ref: '#/components/responses/DSetFileContent' '400': $ref: '#/components/responses/DSetBadRequest' '404': $ref: '#/components/responses/DSetNotFound' /admin/objectStoreSecrets: post: tags: - Object Store Secret summary: Create a secret description: 'Create a secret based on the configuration in the request body ' operationId: kubesubmit.v4.object_store_secrets.create parameters: - $ref: '#/components/parameters/BckndtokenHeader' - $ref: '#/components/parameters/Bckndai-resource-group-default' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall' responses: '202': description: 'The request to create a k8s secret based on the given configuration has been accepted. ' content: application/json: schema: $ref: '#/components/schemas/BckndobjectStoreSecretCreationResponse' '400': description: 'One of the following failure cases has occurred: