โ07-20-2023 11:45 PM
I have several queries and associated alerts in a workspace, and I would like to be able to deploy them to an other workspace, for example an higher environment.
Since both queries and objects are not supported in repos, what is the way to go to easily recreate queries/alerts somewhere else ?
I saw a very similar post on the community that recommended using the API, so my question is : is there a way to export an existing query/alert to json to easily recreate it through the API (in a similar fashion as to a job) ?
Also, could Unity Catalog be of any help for this task ?
Thank you !
โ07-21-2023 12:26 PM
It is possible to do this via API. With the API you can:
With alerts you can do something similar:
โ07-23-2023 11:16 PM
The API allows me to create queries, but apparently not to recreate existing queries it seems ? For example the API does not allow me to recreate the schedule of a query right ?
โ07-24-2023 03:05 AM - edited โ07-24-2023 03:06 AM
It is not explicitly stated in the Docs but there is a "schedule" option in the payload for a query definition with the following structure:
โ07-22-2023 09:22 PM
Hi @erigaud
We haven't heard from you since the last response from @btafur , and I was checking back to see if her suggestions helped you.
Or else, If you have any solution, please share it with the community, as it can be helpful to others.
Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now