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 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.