> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# get_connection

<div className="kinetica-pydoc">
  <div className="dl py method">
    <div className="dt sig sig-object py" id="gpudb.GPUdb.get_connection"> <span className="em property"><span className="k"><span className="pre">static</span></span><span className="w"> </span></span><span className="sig-name descname"><span className="pre">get\_connection</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">enable\_ssl\_cert\_verification</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">enable\_auto\_discovery</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">enable\_failover</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">False</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">logging\_level</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">'INFO'</span></span></span><span className="sig-paren">)</span> <span className="sig-return"><span className="sig-return-icon">→</span> <span className="sig-return-typehint"><a className="reference internal" href="#gpudb.GPUdb" title="gpudb.GPUdb"><span className="pre">GPUdb</span></a></span></span><a href="https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L11529"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></div>

    <div className="dd">
      <p>Get a connection to Kinetica getting connection and authentication information from environment variables.</p>
      <p>This method is useful particularly for Jupyter notebooks, which won’t need authentication credentials embedded within them. This, in turn, helps to prevent commit of credentials to the notebook version control. In addition, some features including auto-discovery and SSL certificate verification are disabled by default to simplify connections for simple use cases.</p>
      <p>The following environment variables are required: - <span className="cite">KINETICA\_URL</span>: the url of the Kinetica server - <span className="cite">KINETICA\_USER</span>: the username to connect with - <span className="cite">KINETICA\_PASSWD</span>: the password to connect with</p>
      <p><strong>Parameters</strong></p>

      <div className="blockquote">
        <div>
          <div className="dl simple">
            <div className="dt">enable\_ssl\_cert\_verification (<span className="em">bool</span>) –</div>

            <div className="dd">
              <p>Enable SSL certificate verification.</p>
            </div>

            <div className="dt">enable\_auto\_discovery (<span className="em">bool</span>) –</div>

            <div className="dd">
              <p>Enable auto-discovery of the initial cluster nodes, as well as any attached failover clusters. This allows for both multi-head ingestion & key lookup, as well as cluster failover.</p>
            </div>

            <div className="dt">enable\_failover (<span className="em">bool</span>) –</div>

            <div className="dd">
              <p>Enable failover to another cluster.</p>
            </div>

            <div className="dt">logging\_level (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Logging level for the connection. (INFO by default)</p>
            </div>
          </div>
        </div>
      </div>

      <div className="dl simple">
        <div className="dt">Returns (GPUdb):</div>

        <div className="dd">
          <p>An active connection to Kinetica.</p>
        </div>
      </div>
    </div>
  </div>
</div>
