<?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: Start and stop lakebase instance in Lakebase Discussions</title>
    <link>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132004#M32</link>
    <description>&lt;P data-unlink="true"&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/178031"&gt;@juanjomendez96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I believe this &lt;A href="https://docs.databricks.com/aws/en/oltp/create/#-stop-or-start-an-instance" target="_self"&gt;documentation&lt;/A&gt; covers exactly what you’re looking for. Just keep in mind that this feature is still in &lt;SPAN class=""&gt;&lt;STRONG&gt;Public Preview&lt;/STRONG&gt;&lt;/SPAN&gt;, and as highlighted at the top of the page, it may not yet be available in your region.&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;"This feature is in Public Preview in the following regions: us-east-1, us-west-2, eu-west-1, ap-southeast-1, ap-southeast-2, eu-central-1, us-east-2, ap-south-1."&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Isi&lt;/P&gt;</description>
    <pubDate>Mon, 15 Sep 2025 14:43:22 GMT</pubDate>
    <dc:creator>Isi</dc:creator>
    <dc:date>2025-09-15T14:43:22Z</dc:date>
    <item>
      <title>Start and stop lakebase instance</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/131986#M31</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;&lt;P&gt;I have been using the databricks-sdk for a while, and I have managed to create a system where I have controlled when the clusters and applications start and stop.&lt;/P&gt;&lt;P&gt;However, now that we have adopted the new lakebase feature, we were wondering if we can do the same for those instances.&lt;/P&gt;&lt;P&gt;In the documentation (&lt;A href="https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/database.html#databricks.sdk.service.database.DatabaseCatalog" target="_blank"&gt;https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/database.html#databricks.sdk.service.database.DatabaseCatalog&lt;/A&gt;), I cannot see anything similar to what exists for applications and clusters.&lt;/P&gt;&lt;P&gt;For more context, we have scheduled a job that stops one of our applications doing the following:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if action == "stop" and cluster_status == "RUNNING":
        print(f"Stopping cluster_id {cluster_id}")
        w.clusters.delete(cluster_id)
    
    elif action == "start" and cluster_status == "STOPPED":
        print(f"Starting cluster_id {cluster_id}")
        w.clusters.start(cluster_id)&lt;/LI-CODE&gt;&lt;P&gt;By having the cluster_id, we can start or stop the cluster automatically.&lt;/P&gt;&lt;P&gt;Does anyone from this community know how can we achieve something similar but for lakebase instances?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 13:54:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/131986#M31</guid>
      <dc:creator>juanjomendez96</dc:creator>
      <dc:date>2025-09-15T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Start and stop lakebase instance</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132004#M32</link>
      <description>&lt;P data-unlink="true"&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/178031"&gt;@juanjomendez96&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I believe this &lt;A href="https://docs.databricks.com/aws/en/oltp/create/#-stop-or-start-an-instance" target="_self"&gt;documentation&lt;/A&gt; covers exactly what you’re looking for. Just keep in mind that this feature is still in &lt;SPAN class=""&gt;&lt;STRONG&gt;Public Preview&lt;/STRONG&gt;&lt;/SPAN&gt;, and as highlighted at the top of the page, it may not yet be available in your region.&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;"This feature is in Public Preview in the following regions: us-east-1, us-west-2, eu-west-1, ap-southeast-1, ap-southeast-2, eu-central-1, us-east-2, ap-south-1."&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Isi&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 14:43:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132004#M32</guid>
      <dc:creator>Isi</dc:creator>
      <dc:date>2025-09-15T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Start and stop lakebase instance</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132005#M33</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Sure, &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/178031"&gt;@juanjomendez96&lt;/a&gt;&amp;nbsp;. You just need to use following code from python SDK:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;from databricks.sdk import WorkspaceClient&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;from databricks.sdk.service.database import DatabaseInstance&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# Initialize the Workspace client&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;w = WorkspaceClient()&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# Stop a database instance&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;instance_name = "my-database-instance"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;w.database.update_database_instance(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;name=instance_name,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;database_instance=DatabaseInstance(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;name=instance_name,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;stopped=True&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;update_mask="*"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;print(f"Stopped database instance: {instance_name}")&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# Start a database instance&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;w.database.update_database_instance(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;name=instance_name,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;database_instance=DatabaseInstance(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;name=instance_name,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;stopped=False&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;update_mask="*"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;print(f"Started database instance: {instance_name&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 14:47:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132005#M33</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-15T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Start and stop lakebase instance</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132011#M34</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145555"&gt;@Isi&lt;/a&gt;&amp;nbsp;thanks for your fast response in the matter. Actually I have lakebase enabled in my region, the only problem was that I did not fully understand the documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyways &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 15:23:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132011#M34</guid>
      <dc:creator>juanjomendez96</dc:creator>
      <dc:date>2025-09-15T15:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Start and stop lakebase instance</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132012#M35</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;this worked like a charm. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 15:23:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132012#M35</guid>
      <dc:creator>juanjomendez96</dc:creator>
      <dc:date>2025-09-15T15:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Start and stop lakebase instance</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132014#M36</link>
      <description>&lt;P&gt;No problem &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/178031"&gt;@juanjomendez96&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 15:30:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/start-and-stop-lakebase-instance/m-p/132014#M36</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-15T15:30:53Z</dc:date>
    </item>
  </channel>
</rss>

