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 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
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 :
Hope that helps!
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 :
Hope that helps!
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