Pull workspace url and workspace name using databricks-sdk / programaticaly in notebook

CaptainJack
New Contributor III

1. How could I pull workspace url (https://adb-XXXXX.XX.....net) 
2. How could I get workspace name visible in top right corner.

I know that easies solution is dbutils.notebook.entry_point.... browserHostName but unfortunetly it is not working in job clusters. I tried use databricks-sdk WorkspaceClient and was able to get workspace id. like this

id = WorkspaceClient().get_workspace_id()

but still I am not able to get full workspace url from there. Same for workspace name.