<?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: How to check the status of a cluster via Rest API? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18331#M12141</link>
    <description>&lt;P&gt;There's a clusters GET request you can make as part of the clusters API:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 22:57:36 GMT</pubDate>
    <dc:creator>Taha</dc:creator>
    <dc:date>2021-06-25T22:57:36Z</dc:date>
    <item>
      <title>How to check the status of a cluster via Rest API?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18329#M12139</link>
      <description />
      <pubDate>Fri, 25 Jun 2021 22:36:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18329#M12139</guid>
      <dc:creator>User16790091296</dc:creator>
      <dc:date>2021-06-25T22:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the status of a cluster via Rest API?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18330#M12140</link>
      <description>&lt;P&gt;You can use this code for a GET call from the &lt;A href="https://docs.databricks.com/dev-tools/api/latest/clusters.html#" alt="https://docs.databricks.com/dev-tools/api/latest/clusters.html#" target="_blank"&gt;cluster API Docs&lt;/A&gt; and look at the response field "state" to see the status. You will want to swap out the domain for your workspace's domain and the cluster ID of the cluster you are monitoring.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl --netrc -X GET \
&lt;A href="https://&amp;lt;DOMAIN&amp;gt;.cloud.databricks.com/api/2.0/clusters/get" target="test_blank"&gt;https://&amp;lt;DOMAIN&amp;gt;.cloud.databricks.com/api/2.0/clusters/get&lt;/A&gt; \
--data '{ "cluster_id": "1&amp;lt;CLUSTER ID&amp;gt;" }' \
| jq .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 22:45:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18330#M12140</guid>
      <dc:creator>Hayley</dc:creator>
      <dc:date>2021-06-25T22:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the status of a cluster via Rest API?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18331#M12141</link>
      <description>&lt;P&gt;There's a clusters GET request you can make as part of the clusters API:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 22:57:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18331#M12141</guid>
      <dc:creator>Taha</dc:creator>
      <dc:date>2021-06-25T22:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the status of a cluster via Rest API?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18332#M12142</link>
      <description>&lt;P&gt;Dy doing a `&lt;A href="https://docs.databricks.com/dev-tools/api/latest/clusters.html#get" alt="https://docs.databricks.com/dev-tools/api/latest/clusters.html#get" target="_blank"&gt;GET&lt;/A&gt;` call using the cluster id&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl --netrc -X GET \
&lt;A href="https://dbc-a1b2345c-d6e7.cloud.databricks.com/api/2.0/clusters/get" target="test_blank"&gt;https://dbc-a1b2345c-d6e7.cloud.databricks.com/api/2.0/clusters/get&lt;/A&gt; \
--data '{ "cluster_id": "1234-567890-myclustID" }' \
| jq .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The response json will have a `&lt;A href="https://docs.databricks.com/dev-tools/api/latest/clusters.html?&amp;amp;_ga=2.35364193.179788466.1624658411-1200726198.1624658411#clusterclusterstate" alt="https://docs.databricks.com/dev-tools/api/latest/clusters.html?&amp;amp;_ga=2.35364193.179788466.1624658411-1200726198.1624658411#clusterclusterstate" target="_blank"&gt;state&lt;/A&gt;` tag which will look like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{
  "cluster_id": "1234-567890-myclustID",
  ...
  "state": "TERMINATED",
  "state_message": "Inactive cluster terminated (inactive for 120 minutes).",
...
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 23:02:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-check-the-status-of-a-cluster-via-rest-api/m-p/18332#M12142</guid>
      <dc:creator>Mooune_DBU</dc:creator>
      <dc:date>2021-06-25T23:02:29Z</dc:date>
    </item>
  </channel>
</rss>

