如何使用.netrc文件验证Databrics API [英] How to authenticate Databrics API using .netrc file

查看:116
本文介绍了如何使用.netrc文件验证Databrics API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在计算机上创建了 .netrc文件,并尝试在databricks rest api调用下面进行操作。但是它总是会产生未经授权的错误。如何在Databricks中创建.netrc文件?

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

curl -n -X GET https:///api/2.0/token/list

如何通过databricks api使用.netrc文件?

How to use .netrc file with databricks api?

推荐答案

我的.netrc文件如下所示:

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.

请参见 Databricks文档如何创建令牌。

这篇关于如何使用.netrc文件验证Databrics API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆