Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hello,
I have a requirement wherein I have to get the URL of the dashboard for a given Dataiku Project through Python recipe.
How can this be done can someone please help me.
Thanks
Varun
There are no built-in API methods to get the dashboard URL but this works for me:
import dataiku
client = dataiku.api_client()
project = client.get_project('some_project_key')
dss_url = client.get_general_settings().get_raw()['studioExternalUrl']
dashboards = project.list_dashboards()
for dashboard in dashboards:
dashboard_url = dss_url + 'projects/' + project.project_key.upper() + '/dashboards/' + dashboard['id'] + '_' + urllib.parse.quote(dashboard['name']) + '/view/'
print(dashboard_url)
Upgrade to Dataiku v12.
Hi,
Seems like I need admin access to run below code.
dss_url = client.get_general_settings().get_raw()['studioExternalUrl']
as I am getting below error
DataikuException: com.dataiku.dip.exceptions.UnauthorizedException: Action forbidden, you are not admin