<?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: Calling Databricks API from Databricks notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16665#M10799</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;All the examples seem to use a .netrc file, but it looks like on the cluster, there is none by default - surely, there is some way to check what the cluster config of the current cluster is without going through lots of authentication hoops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 14:20:17 GMT</pubDate>
    <dc:creator>ThomasKastl</dc:creator>
    <dc:date>2021-08-11T14:20:17Z</dc:date>
    <item>
      <title>Calling Databricks API from Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16664#M10798</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;A similar question has already been added, but the reply is very confusing to me.&lt;/P&gt;
&lt;P&gt;Basically, for automated jobs, I want to log the following information &lt;B&gt;from inside a Python notebook &lt;/B&gt;that runs in the job:&lt;/P&gt;
&lt;P&gt;- What is the cluster configuration (most imporant, what machine type and how many?)&lt;/P&gt;
&lt;P&gt;- Which user triggered the run&lt;/P&gt;
&lt;P&gt;- And maybe some other stuff.&lt;/P&gt;
&lt;P&gt;I know that all this information can be accessed by using the Cluster API ( &lt;A href="https://docs.databricks.com/dev-tools/api/latest/clusters.html#get" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/clusters.html#get&lt;/A&gt; ) - however, I am not sure how to do this while on the cluster itself. Is there an easier way, like going through dbutils? If not, how would authorization work, since the job might be started by anyone on our instance? I would highly appreciate some sample code that always works when on the cluster itself... Thanks!&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:16:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16664#M10798</guid>
      <dc:creator>ThomasKastl</dc:creator>
      <dc:date>2021-08-11T14:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Databricks API from Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16665#M10799</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;All the examples seem to use a .netrc file, but it looks like on the cluster, there is none by default - surely, there is some way to check what the cluster config of the current cluster is without going through lots of authentication hoops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:20:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16665#M10799</guid>
      <dc:creator>ThomasKastl</dc:creator>
      <dc:date>2021-08-11T14:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Databricks API from Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16667#M10801</link>
      <description>&lt;P&gt;@Thomas Kastl​&amp;nbsp;First and foremost, api auth is needed to call &lt;A href="https://docs.databricks.com/dev-tools/api/latest/clusters.html?&amp;amp;_ga=2.69428824.930568569.1652408683-480220406.1638459894&amp;amp;_gac=1.113179766.1652199842.Cj0KCQjwmuiTBhDoARIsAPiv6L8UwsWrnD6YaYVaeDvIdOpt0XSNFvM1KNup4vlU7eylk4fFmx8TucgaAlrNEALw_wcB#get" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/clusters.html?&amp;amp;_ga=2.69428824.930568569.1652408683-480220406.1638459894&amp;amp;_gac=1.113179766.1652199842.Cj0KCQjwmuiTBhDoARIsAPiv6L8UwsWrnD6YaYVaeDvIdOpt0XSNFvM1KNup4vlU7eylk4fFmx8TucgaAlrNEALw_wcB#get&lt;/A&gt; &lt;/P&gt;&lt;P&gt;like this - &lt;A href="https://docs.databricks.com/dev-tools/api/latest/authentication.html" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/authentication.html&lt;/A&gt; . though you can call this through notebook, terminal or IDE (https://docs.databricks.com/dev-tools/index.html#developer-tools-and-guidance)&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 03:22:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16667#M10801</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-05-13T03:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Databricks API from Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16669#M10803</link>
      <description>&lt;P&gt;hi @Thomas Kastl​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Did any of the responses help you to resolve your question? if it did, please mark it as best. Otherwise, please let us know if you still need help.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 21:06:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16669#M10803</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-07-25T21:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Databricks API from Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16670#M10804</link>
      <description>&lt;P&gt;Thanks for the follow-up. We resolved this a different way, but the input with the dbutils.secret was helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 07:30:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-databricks-api-from-databricks-notebook/m-p/16670#M10804</guid>
      <dc:creator>ThomasKastl</dc:creator>
      <dc:date>2022-07-26T07:30:20Z</dc:date>
    </item>
  </channel>
</rss>

