Databricks Query History, How to get "OpenAPI specification"?

Mohammad Saber 591 Reputation points
2023-02-23T10:48:10.79+00:00

Hi

I am trying to get Query History following the documentation.

I don't understand the explanations about OpenAPI specification. There is a file that we can download but it seems that it is a sample file.

How can I get the OpenAPI specification for the workspace or SQL warehouse that I am using?

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-02-24T10:24:12.7866667+00:00

    @Mohammad Saber Thanks for the question and using MS Q&A platform.

    Once you have downloaded the OpenAPI specification - you can view the results using Redocly, Postman, or Swagger Editor.

    If you have the databricks url and PAT you can easily call the Databricks SQL REST API.

    https://<databricks-instance>/api/2.0/preview/sql/queries

    Accessing the Databricks SQL REST API:

    User's image

    Accessing the Databricks SQL REST API using the OpenAPI specification:

    ADB-SQL-Query-OpenAPINew

    For more details, refer to Databricks SQL API reference and Queries, Dashboards, and Alerts API
    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.