> ## 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.

# createCredential

<div className="kinetica-doxygen">
  <div id="a3e28b2e1d6ee457d0d127139c6369c7c" />

  <h2 className="memtitle"><span className="permalink"><a href="#a3e28b2e1d6ee457d0d127139c6369c7c">◆ </a></span>createCredential() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">CreateCredentialResponse</a> gpudb::GPUdb::createCredential </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialRequest">CreateCredentialRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Create a new <a href="/content/concepts/credentials/" target="_top">credential</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a528e40827a0c5c22e9d19379102639a8" />

  <h2 className="memtitle"><span className="permalink"><a href="#a528e40827a0c5c22e9d19379102639a8">◆ </a></span>createCredential() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">CreateCredentialResponse</a> & gpudb::GPUdb::createCredential </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialRequest">CreateCredentialRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">CreateCredentialResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Create a new <a href="/content/concepts/credentials/" target="_top">credential</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="af8b6fbc3da2a392838bb700762188a53" />

  <h2 className="memtitle"><span className="permalink"><a href="#af8b6fbc3da2a392838bb700762188a53">◆ </a></span>createCredential() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">CreateCredentialResponse</a> gpudb::GPUdb::createCredential </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">credentialName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">type</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">identity</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">secret</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Create a new <a href="/content/concepts/credentials/" target="_top">credential</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">credentialName</td>
              <td>Name of the credential to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match an existing credential name. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">type</td>

              <td>
                <a className="el" href="/content/api/cpp/classgpudb_1_1Type">Type</a> of the credential to be created. Supported values:

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a8e7467d80fbec5d546960c2b65575414">create\_credential\_aws\_access\_key</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad1e554a090f28d4f4ad665b5fcbc4404">create\_credential\_aws\_iam\_role</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a702aa3c8fb2d908278bacff3742b2c90">create\_credential\_azure\_ad</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a718bf7c3ceeac71003b64b77907b9bc7">create\_credential\_azure\_oauth</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a4d8d3adc8b19322f7cd72b2332bbba74">create\_credential\_azure\_sas</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1d687a3901fd183588b3907292edcd82">create\_credential\_azure\_storage\_key</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a00019a2b9a7b6e5fdf8ec66e35979086">create\_credential\_confluent</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad9aee8ca52a31a3ba3bf38f21f1d3567">create\_credential\_docker</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a415742c998ae94c05d67ffddc5668ddd">create\_credential\_gcs\_service\_account\_id</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3cfff09c6c8fe5c06abf2bd0d5504e69">create\_credential\_gcs\_service\_account\_keys</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ac4e26cd45a7dfedd81f631e673960f1e">create\_credential\_hdfs</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a07beb78d00453d13682cb398adb3e96c">create\_credential\_jdbc</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a258690e6a1b9ab75e054059a9c28b960">create\_credential\_kafka</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0f69844381e5338d8200fb922324c7ab">create\_credential\_nvidia\_api\_key</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#abc3879126d6e44f9b04abd2b2726420f">create\_credential\_openai\_api\_key</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3f1e9b285d037c2b2c48952e59e58576">create\_credential\_rest</a> </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">identity</td>
              <td>User of the credential to be created. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">secret</td>
              <td>Password of the credential to be created. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>
              <td>Optional parameters. The default value is an empty map.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a6f2cc71c1467245ca17951507a23e956" />

  <h2 className="memtitle"><span className="permalink"><a href="#a6f2cc71c1467245ca17951507a23e956">◆ </a></span>createCredential() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">CreateCredentialResponse</a> & gpudb::GPUdb::createCredential </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">credentialName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">type</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">identity</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">secret</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">CreateCredentialResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Create a new <a href="/content/concepts/credentials/" target="_top">credential</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">credentialName</td>
              <td>Name of the credential to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match an existing credential name. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">type</td>

              <td>
                <a className="el" href="/content/api/cpp/classgpudb_1_1Type">Type</a> of the credential to be created. Supported values:

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a8e7467d80fbec5d546960c2b65575414">create\_credential\_aws\_access\_key</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad1e554a090f28d4f4ad665b5fcbc4404">create\_credential\_aws\_iam\_role</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a702aa3c8fb2d908278bacff3742b2c90">create\_credential\_azure\_ad</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a718bf7c3ceeac71003b64b77907b9bc7">create\_credential\_azure\_oauth</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a4d8d3adc8b19322f7cd72b2332bbba74">create\_credential\_azure\_sas</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1d687a3901fd183588b3907292edcd82">create\_credential\_azure\_storage\_key</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a00019a2b9a7b6e5fdf8ec66e35979086">create\_credential\_confluent</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad9aee8ca52a31a3ba3bf38f21f1d3567">create\_credential\_docker</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a415742c998ae94c05d67ffddc5668ddd">create\_credential\_gcs\_service\_account\_id</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3cfff09c6c8fe5c06abf2bd0d5504e69">create\_credential\_gcs\_service\_account\_keys</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ac4e26cd45a7dfedd81f631e673960f1e">create\_credential\_hdfs</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a07beb78d00453d13682cb398adb3e96c">create\_credential\_jdbc</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a258690e6a1b9ab75e054059a9c28b960">create\_credential\_kafka</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0f69844381e5338d8200fb922324c7ab">create\_credential\_nvidia\_api\_key</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#abc3879126d6e44f9b04abd2b2726420f">create\_credential\_openai\_api\_key</a> </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3f1e9b285d037c2b2c48952e59e58576">create\_credential\_rest</a> </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">identity</td>
              <td>User of the credential to be created. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">secret</td>
              <td>Password of the credential to be created. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>
              <td>Optional parameters. The default value is an empty map. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
