<?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 Secrets in databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/secrets-in-databricks/m-p/20564#M13888</link>
    <description>&lt;P&gt;I created a secret on databricks using the secrets API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Scope_name : {"scope": "dbtest", "initial_manage_principal":"user"}
Resp= requests.post('https://instancename.net/mynoteid/api/2.0/secrets/scopes/create',json=Scope_name)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Similar way, I added the user and password&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Content = {"scope":"dbtest","key":"user","string_value":"Vidyasekar"}
requests.post('https://instancename.net/mynoteid/api/2.0/secrets/put', json=content)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After the execution I got response :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Response [200]&amp;gt;&lt;/P&gt;&lt;P&gt;Which means secrets stored successfully.&lt;/P&gt;&lt;P&gt;While listing the same using the list API call or&amp;nbsp;&lt;/P&gt;&lt;P&gt;dbutils.secrets.get()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, its shows '&lt;B&gt;Secret does not exist with scope&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Here my doubt is, How to get the databricks intance name? Where the secrets stored in the DBFS location?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 15:40:07 GMT</pubDate>
    <dc:creator>User16790091296</dc:creator>
    <dc:date>2021-06-24T15:40:07Z</dc:date>
    <item>
      <title>Secrets in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/secrets-in-databricks/m-p/20564#M13888</link>
      <description>&lt;P&gt;I created a secret on databricks using the secrets API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Scope_name : {"scope": "dbtest", "initial_manage_principal":"user"}
Resp= requests.post('https://instancename.net/mynoteid/api/2.0/secrets/scopes/create',json=Scope_name)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Similar way, I added the user and password&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Content = {"scope":"dbtest","key":"user","string_value":"Vidyasekar"}
requests.post('https://instancename.net/mynoteid/api/2.0/secrets/put', json=content)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After the execution I got response :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Response [200]&amp;gt;&lt;/P&gt;&lt;P&gt;Which means secrets stored successfully.&lt;/P&gt;&lt;P&gt;While listing the same using the list API call or&amp;nbsp;&lt;/P&gt;&lt;P&gt;dbutils.secrets.get()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, its shows '&lt;B&gt;Secret does not exist with scope&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Here my doubt is, How to get the databricks intance name? Where the secrets stored in the DBFS location?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 15:40:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/secrets-in-databricks/m-p/20564#M13888</guid>
      <dc:creator>User16790091296</dc:creator>
      <dc:date>2021-06-24T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Secrets in databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/secrets-in-databricks/m-p/20565#M13889</link>
      <description>&lt;P&gt;You'll have to specify the scope and the key in the format below to get the value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.secret.get(scope="dbtest", key="user") &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Probably a good idea to review the Secret Management documentation for details on how to get this setup the right way - &lt;A href="https://docs.databricks.com/security/secrets/index.html" target="test_blank"&gt;https://docs.databricks.com/security/secrets/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 21:51:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/secrets-in-databricks/m-p/20565#M13889</guid>
      <dc:creator>aladda</dc:creator>
      <dc:date>2021-06-25T21:51:27Z</dc:date>
    </item>
  </channel>
</rss>

