<?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: Listing files using REST API in Lakehouse in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4570597#M7499</link>
    <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please &lt;STRONG&gt;Accept it as a solution&lt;/STRONG&gt; and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' so others can find it easily.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 12:01:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-25T12:01:11Z</dc:date>
    <item>
      <title>Listing files using REST API in Lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4371130#M6220</link>
      <description>&lt;P&gt;i am trying to list the file of lakehouse using reatapi but it is not working but when i am trying using tables it is propely working&lt;BR /&gt;and i am following this&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/lakehouse/items/list-lakehouses?tabs=HTTP" target="_blank"&gt;Items - List Lakehouses - REST API (Lakehouse) | Microsoft Learn&lt;/A&gt;&amp;nbsp;documentation for listing tables&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i am using this url for table:&lt;SPAN&gt;&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/lakehouses/{lakehouseId}/Tables" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/lakehouses/{lakehouseId}/Tables&lt;/A&gt;&lt;BR /&gt;and i am getting proper result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="munindra_0-1737351651336.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1228164i8B96A3CAA9A5F292/image-size/medium?v=v2&amp;amp;px=400" role="button" title="munindra_0-1737351651336.png" alt="munindra_0-1737351651336.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;similarly when i am trying with&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/lakehouses/{lakehouseId}/Files" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/lakehouses/{lakehouseId}/Files&lt;/A&gt;&lt;BR /&gt;for files&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="munindra_1-1737351905832.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1228167iB875B142F7CE982B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="munindra_1-1737351905832.png" alt="munindra_1-1737351905832.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 05:45:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4371130#M6220</guid>
      <dc:creator>munindra</dc:creator>
      <dc:date>2025-01-20T05:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files using REST API in Lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4371332#M6222</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue you’re encountering is due to the differences in API endpoints for listing tables versus files in a Microsoft Fabric Lakehouse.&lt;BR /&gt;For listing files in a Lakehouse, you need to use a different API endpoint. The correct approach is to use the Azure Data Lake Storage Gen2 REST API, as the Lakehouse files are stored in OneLake, which is compatible with ADLS Gen2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To list files, you should use an endpoint similar to this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://onelake.dfs.fabric.microsoft.com/{workspaceId}/{lakehouseId}.lakehouse/Files?resource=filesystem&amp;amp;recursive=true" target="_blank"&gt;https://onelake.dfs.fabric.microsoft.com/{workspaceId}/{lakehouseId}.lakehouse/Files?resource=filesystem&amp;amp;recursive=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You’ll need to include the appropriate authentication headers, typically using a bearer token obtained for the ‘storage’ scope.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use this approach and see&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import requests&lt;/P&gt;&lt;P&gt;workspace_id = "your_workspace_id"&lt;BR /&gt;lakehouse_id = "your_lakehouse_id"&lt;BR /&gt;token = mssparkutils.credentials.getToken("storage")&lt;/P&gt;&lt;P&gt;url = f"&lt;A href="https://onelake.dfs.fabric.microsoft.com/{workspace_id}/{lakehouse_id}.lakehouse/Files?resource=filesystem&amp;amp;recursive=true" target="_blank"&gt;https://onelake.dfs.fabric.microsoft.com/{workspace_id}/{lakehouse_id}.lakehouse/Files?resource=filesystem&amp;amp;recursive=true&lt;/A&gt;"&lt;BR /&gt;headers = {"Authorization": f"Bearer {token}"}&lt;/P&gt;&lt;P&gt;response = requests.get(url, headers=headers)&lt;BR /&gt;files = response.json()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please accept the solution and give kudos if this is helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nilendra&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 07:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4371332#M6222</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-20T07:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files using REST API in Lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4371336#M6223</link>
      <description>&lt;P&gt;&lt;A href="https://onelake.dfs.fabric.microsoft.com/{workspaceId}/{lakehouseId}.lakehouse/Files?resource=filesystem&amp;amp;recursive=true" target="_blank"&gt;https://onelake.dfs.fabric.microsoft.com/{workspaceId}/{lakehouseId}.lakehouse/Files?resource=filesystem&amp;amp;recursive=true&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 07:30:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4371336#M6223</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-20T07:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files using REST API in Lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4383610#M6580</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for reaching out microsoft fabric community forum.&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;I wanted to check if you had the opportunity to review the information provided by &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;. Please feel free to contact us if you have any further questions. If his response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 06:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4383610#M6580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-28T06:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files using REST API in Lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4393994#M6910</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If his response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 09:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4393994#M6910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-04T09:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files using REST API in Lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4570597#M7499</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please &lt;STRONG&gt;Accept it as a solution&lt;/STRONG&gt; and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' so others can find it easily.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 12:01:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Listing-files-using-REST-API-in-Lakehouse/m-p/4570597#M7499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-25T12:01:11Z</dc:date>
    </item>
  </channel>
</rss>

