<?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: Get Cloud Connection details in fabric using python in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4143401#M5330</link>
    <description>&lt;P&gt;If this is important to you please consider voting for an existing idea or raising a new one at &lt;A href="https://ideas.fabric.microsoft.com" target="_blank"&gt;https://ideas.fabric.microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 17:21:14 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-09-10T17:21:14Z</dc:date>
    <item>
      <title>Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4140155#M5291</link>
      <description>&lt;P&gt;Hi Fabric Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with data pipelines, where I need to&amp;nbsp; retrive cloud connection details using python. These connection can be easily viewed from Setting -&amp;gt; Manage Connection and Gateways&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Below this we can view our connections.&amp;nbsp;&lt;BR /&gt;Is there any way by which i can get the details like connection ID, connection String, etc&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 07:55:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4140155#M5291</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2024-09-09T07:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4140641#M5295</link>
      <description>&lt;P&gt;Run the standard REST API calls from Python&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/get-datasources" target="_blank"&gt;Gateways - Get Datasources - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 12:37:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4140641#M5295</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-09T12:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4141631#M5304</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="803370" data-lia-user-login="chetanhiwale" class="lia-mention lia-mention-user"&gt;chetanhiwale&lt;/a&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Thank you very much lbendlin&amp;nbsp;for your prompt reply.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;The REST API is a good way to do this. Most cloud services provide REST apis to manage connections and gateways. You can use these apis to get the details you need.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;You can also use the requests library in Python to make API calls.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;SPAN&gt;First, you need to install the requests library.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;You can install it using the pip command. Open your command line terminal. Enter the following command and press Enter.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;SPAN&gt;Here’s a basic example:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;import requests

# Replace with your API endpoint and necessary headers
api_url = "https://api.yourcloudservice.com/connections"
headers = {
    "Authorization": "Bearer YOUR_ACCESS_TOKEN",
    "Content-Type": "application/json"
}

response = requests.get(api_url, headers=headers)

if response.status_code == 200:
    connections = response.json()
    for connection in connections:
        print(f"ID: {connection['id']}, Connection String: {connection['connectionString']}")
else:
    print(f"Failed to retrieve connections: {response.status_code}")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="" style="background: white;"&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;SPAN&gt;You can view the link below for more details:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="" style="background: white;"&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;A href="https://docs.python-requests.org/en/latest/index.html" target="_blank" rel="noopener"&gt;Requests: HTTP for Humans™ — Requests 2.32.3 documentation (python-requests.org)&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;A href="https://realpython.com/python-requests/" target="_blank" rel="noopener"&gt;Python's Requests Library (Guide) – Real Python&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Regards,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Nono Chen&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 01:56:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4141631#M5304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-10T01:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4142334#M5313</link>
      <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;, for posting your answer. For me, I am not able to view the gateway / gateway ID. Can you please help me to find gateway. Also to mention I am not using any on-prem connections.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 08:32:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4142334#M5313</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2024-09-10T08:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4142405#M5316</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;attaching image for your reference&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 08:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4142405#M5316</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2024-09-10T08:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4142663#M5318</link>
      <description>&lt;P&gt;There is no gateway. These are leftovers from your local experimentations.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 11:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4142663#M5318</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-10T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4143120#M5326</link>
      <description>&lt;P&gt;Any way by which we can grab them ??&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 15:19:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4143120#M5326</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2024-09-10T15:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4143401#M5330</link>
      <description>&lt;P&gt;If this is important to you please consider voting for an existing idea or raising a new one at &lt;A href="https://ideas.fabric.microsoft.com" target="_blank"&gt;https://ideas.fabric.microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 17:21:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4143401#M5330</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-10T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get Cloud Connection details in fabric using python</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4146231#M5363</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="803370" data-lia-user-login="chetanhiwale" class="lia-mention lia-mention-user"&gt;chetanhiwale&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to find the gateway ID specifically, you can use the Datasets - Get Datasources In Group REST API endpoint.&amp;nbsp; You’ll need your workspace /group and dataset ID, and you’ll get back the details of the dataset’s datasource.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/ID-Gateway-and-datasource/m-p/3037192" target="_blank"&gt;Solved: ID Gateway and datasource - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasources-in-group" target="_blank"&gt;Datasets - Get Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 05:55:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Get-Cloud-Connection-details-in-fabric-using-python/m-p/4146231#M5363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-12T05:55:04Z</dc:date>
    </item>
  </channel>
</rss>

