<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: dbfs rest api - Access denied on dbfs rest api call but access works in dataricks notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/60437#M31667</link>
    <description>&lt;P&gt;the api didn't work for me ,so I used databricks sdk to upload files.&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;SPAN&gt;WorkspaceClient's&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;upload method. Here's the sample that might help&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;workspace_client = WorkspaceClient(
        host = SERVER_HOSTNAME,
        token = ACCESS_TOKEN
    )
response = workspace_client.files.upload(file_path, content)&lt;/LI-CODE&gt;&lt;P&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 19:47:32 GMT</pubDate>
    <dc:creator>PrData05</dc:creator>
    <dc:date>2024-02-16T19:47:32Z</dc:date>
    <item>
      <title>dbfs rest api - Access denied on dbfs rest api call but access works in dataricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/49544#M28579</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to interact with dbfs to upload files and list files in dbfs directory ( we are tring to upload files in volumes ). Although we have necessary permissions on databricks, we are still getting permission denied when we are making rest api calls.&lt;/P&gt;&lt;P&gt;We are able to work successfully on databricks notebooks with same permissions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;error code when we are trying to list files in a directory&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"error_code":"PERMISSION_DENIED","message":"No operations allowed on this path"}&lt;/P&gt;&lt;P&gt;erorr when we are trying to upload files in a directory:&lt;/P&gt;&lt;P&gt;{"error_code":"INVALID_PARAMETER_VALUE","message":"You must provide the upload path!"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the request to upload file looks like this:&lt;/P&gt;&lt;P&gt;{'path': 'dbfs:/Volumes/sandbox/managed/mvolume/new_file.json', 'contents': 'SGVsbG8sIFdvcmxkIQ=', 'overwrite': 'true'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any leads why this is not working, would be appreciated. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 18:12:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/49544#M28579</guid>
      <dc:creator>PrData05</dc:creator>
      <dc:date>2023-10-19T18:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: dbfs rest api - Access denied on dbfs rest api call but access works in dataricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/49626#M28596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;, I verified , the upload path is correct and I am passing the correct path in the request.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 17:57:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/49626#M28596</guid>
      <dc:creator>PrData05</dc:creator>
      <dc:date>2023-10-20T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: dbfs rest api - Access denied on dbfs rest api call but access works in dataricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/58104#M31019</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91931"&gt;@PrData05&lt;/a&gt;&amp;nbsp;did you get anywhere with uploading to a volume? This has been suggested as a workaround for uploading to a volume using the dbfs api, but I am getting the same results.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 11:08:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/58104#M31019</guid>
      <dc:creator>TheIceBrick</dc:creator>
      <dc:date>2024-01-22T11:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: dbfs rest api - Access denied on dbfs rest api call but access works in dataricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/60436#M31666</link>
      <description>&lt;P&gt;I am experiencing the same issue as well. Any ideas about how we can upload to volumes using the api? Tried both the&amp;nbsp;&lt;SPAN&gt;/api/2.0&lt;/SPAN&gt;&lt;SPAN&gt;/dbfs/put and the streaming apis (/api/2.0/dbfs/create,/api/2.0/dbfs/add-block,/api/2.0/dbfs/close) but no luck so getting it to work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:40:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/60436#M31666</guid>
      <dc:creator>sgdnp</dc:creator>
      <dc:date>2024-02-16T19:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: dbfs rest api - Access denied on dbfs rest api call but access works in dataricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/60437#M31667</link>
      <description>&lt;P&gt;the api didn't work for me ,so I used databricks sdk to upload files.&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;SPAN&gt;WorkspaceClient's&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;upload method. Here's the sample that might help&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;workspace_client = WorkspaceClient(
        host = SERVER_HOSTNAME,
        token = ACCESS_TOKEN
    )
response = workspace_client.files.upload(file_path, content)&lt;/LI-CODE&gt;&lt;P&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:47:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/60437#M31667</guid>
      <dc:creator>PrData05</dc:creator>
      <dc:date>2024-02-16T19:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: dbfs rest api - Access denied on dbfs rest api call but access works in dataricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/60438#M31668</link>
      <description>&lt;P&gt;the api didn't work for me ,so I used databricks sdk to upload files.&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;SPAN&gt;WorkspaceClient's&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;upload method. Here's the sample that might help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;workspace_client = WorkspaceClient(
        host = SERVER_HOSTNAME,
        token = ACCESS_TOKEN
    )
response = workspace_client.files.upload(file_path, content)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 19:48:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-rest-api-access-denied-on-dbfs-rest-api-call-but-access/m-p/60438#M31668</guid>
      <dc:creator>PrData05</dc:creator>
      <dc:date>2024-02-16T19:48:09Z</dc:date>
    </item>
  </channel>
</rss>

