DSS URL

Solved!
Marlan
DSS URL

Hello all,

Anyone know if the DSS URL is available without admin credentials (from a notebook or recipe)?

Per this post by @NN and responded to by @Andrey, one can get the URL as follows:

 

client.get_general_settings().get_raw().get('studioExternalUrl')

 

However, this requires a client with admin credentials. 

But what I'm trying to do is avoid hard coding the URL in a dataikuapi.DSSClient() call with an API Key that has admin credentials. The problem is of course that I won't have a client that has admin credentials until after the call and I need the URL for that call. 

Note we are using a reverse proxy.

Thanks for any suggestions.

Marlan

0 Kudos
1 Solution
AlexT
Dataiker

Hi,

Since studioExternalUrl is set in the Admin settings this requires admin credentials. 

However, if an admin can set the global variable one time on your DSS instance you can then retrieve with a non-admin user :

Screenshot 2021-12-18 at 12.28.00.png

Screenshot 2021-12-18 at 12.26.58.png

Hope that helps!

View solution in original post

0 Kudos
2 Replies
AlexT
Dataiker

Hi,

Since studioExternalUrl is set in the Admin settings this requires admin credentials. 

However, if an admin can set the global variable one time on your DSS instance you can then retrieve with a non-admin user :

Screenshot 2021-12-18 at 12.28.00.png

Screenshot 2021-12-18 at 12.26.58.png

Hope that helps!

0 Kudos
Marlan
Author

Hi @AlexT,

I had thought of that approach later as well. It's a pretty good solution - easy enough to set up and easy to use via the call to get variables. Maybe not as ideal as having it available built in to non-admin clients but nonetheless it'll work just fine.  

It will accomplish the goal of not having the URL hard coded in a bunch of places in the code. 

Not sure why the external URL call requires admin credentials though. The URL is right up there in browser for everyone to see. 

Thanks!

Marlan 

0 Kudos