• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Unable to list the files using RestAPI in Databricks

Resolved: Unable to list the files using RestAPI in Databricks

0
By Isaac Tonny on 15/03/2023 Issue
Share
Facebook Twitter LinkedIn

In this post, we will see how to resolve Unable to list the files using RestAPI in Databricks

Question:

I am admin of databricks workspace, created PAT token to make API call but continue to get unauthorized access error while trying to check if a folder exist or not using the below code
Any suggestion what’s going wrong here?

Best Answer:

In general you will receive Unauthorized access error when right credentials or enough permissions are not provided for the token. I have used the same script as yours and could able to retrieve the desired results after directly generating my token from databrick's User Settings >> Access tokens >> Generate new token >> Generate.
enter image description here
Make sure you are pointing to the right folder. Below is the complete script that I worked for me to retrieve files from databricks.
enter image description here
Results:
enter image description here
Note: I have contributor role for my databricks workspace

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com

azure azure-databricks databricks powershell
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: what are the permissions required to assign a resource monitor to a warehouse?

01/04/2023

Resolved: How can I modify formData before sending it?

01/04/2023

Resolved: How to efficient create SimpleITK image?

01/04/2023

Comments are closed.

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.