• Databricks Community
  • Data Engineering
  • Re: Deploying existing queries and alerts to other...

btafur
Databricks Employee btafur
Databricks Employee
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎07-21-2023 12:26 PM

It is possible to do this via API. With the API you can:

  • List the queries from a workspace: https://docs.databricks.com/api/azure/workspace/queries/list
  • Get a specific query from a workspace: https://docs.databricks.com/api/azure/workspace/queries/get
  • Create a new query definition in the target workspace: https://docs.databricks.com/api/azure/workspace/queries/create

With alerts you can do something similar: 

  • List: https://docs.databricks.com/api/azure/workspace/alerts/list
  • Get: https://docs.databricks.com/api/azure/workspace/alerts/get
  • Create: https://docs.databricks.com/api/azure/workspace/alerts/create

 

1 Kudo
Reply
Powered by Khoros