I have created ".netrc " file on my machine and trying below databricks rest api call. But it always giving an unauthorized error. How to create .netrc file in Databricks?
curl -n -X GET https:///api/2.0/token/list
How to use .netrc file with databricks api?
My .netrc file looks like this:
machine northeurope.azuredatabricks.net
login token
password dapicxxxxxxxxxxxxxxxxxxxxx
Machine should be the region where your workspace is deployed, login is always token and the password the token created for your user.
See Databricks documentation how to create the token.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With