How can I, using the 3.1 API, copy a UDD in one Looker environment and recreate it in another environment?
We use Gazer (Gazer - A Command Line Tool for Looker Content Management).
Gzr dashboard cat (from one instance)
Gzr dashboard import (to another instance)
I have used gzr to do it, but I need to be able to do it using the API
I havenât done this but the api âget dashboardâ and âcreate dashboardâ passing the body. Going to be fairly fiddly I imagine, check the code in gazer to see which calls it makes, why do you want to do it solely with the api out of curiosity?
I am building a tool that will need to migrate thousands of dashboards every month between environments- I have that GET and CREATE working, the problem I am currently having is that it create the dashboard with the correct name, but none of the looks are moved over. I was told that the correct way to do it however was the import lookml
Ah, you will have to loop through and pull the looks as well and create them, update the dashboard definitions because the look ids will change and then create, really fiddly, or make sure that all dashboards are tiles only, donât think you can convert dashboards to tiles only via api.
Still canât understand why gazer wonât work for that though?
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.