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

# gpudb::CreateCredentialRequest

> gpudb::CreateCredentialRequest — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a3e28b2e1d6ee457d0d127139c6369c7c">GPUdb::createCredential</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/create__credential_8h_source">gpudb/protocol/create\_credential.h</a>></code></p>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:a7e31da8b6c51736f857af0b60fd734e9" id="r_a7e31da8b6c51736f857af0b60fd734e9">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a7e31da8b6c51736f857af0b60fd734e9">CreateCredentialRequest</a> ()</td>
      </tr>

      <tr className="memdesc:a7e31da8b6c51736f857af0b60fd734e9">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialRequest" title="A set of parameters for GPUdb::createCredential.">CreateCredentialRequest</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:a7e31da8b6c51736f857af0b60fd734e9">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:afb971a7939bd5124104599ebce466dbb" id="r_afb971a7939bd5124104599ebce466dbb">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#afb971a7939bd5124104599ebce466dbb">CreateCredentialRequest</a> (const std::string \&credentialName\_, const std::string \&type\_, const std::string \&identity\_, const std::string \&secret\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:afb971a7939bd5124104599ebce466dbb">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialRequest" title="A set of parameters for GPUdb::createCredential.">CreateCredentialRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:afb971a7939bd5124104599ebce466dbb">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Attributes</h2>
        </td>
      </tr>

      <tr className="memitem:ad66b8830b8173ec9283f52867a1cdd12" id="r_ad66b8830b8173ec9283f52867a1cdd12">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ad66b8830b8173ec9283f52867a1cdd12">credentialName</a></td>
      </tr>

      <tr className="memdesc:ad66b8830b8173ec9283f52867a1cdd12">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the credential to be created. <br /></td>
      </tr>

      <tr className="separator:ad66b8830b8173ec9283f52867a1cdd12">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a76b9dc9ee37d8a866a2d07602927843a" id="r_a76b9dc9ee37d8a866a2d07602927843a">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a76b9dc9ee37d8a866a2d07602927843a">type</a></td>
      </tr>

      <tr className="memdesc:a76b9dc9ee37d8a866a2d07602927843a">
        <td className="mdescLeft"> </td>
        <td className="mdescRight"><a className="el" href="/content/api/cpp/classgpudb_1_1Type">Type</a> of the credential to be created. <br /></td>
      </tr>

      <tr className="separator:a76b9dc9ee37d8a866a2d07602927843a">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a806cbe3e17c9a2b04ca4c98c2ab976f8" id="r_a806cbe3e17c9a2b04ca4c98c2ab976f8">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a806cbe3e17c9a2b04ca4c98c2ab976f8">identity</a></td>
      </tr>

      <tr className="memdesc:a806cbe3e17c9a2b04ca4c98c2ab976f8">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">User of the credential to be created. <br /></td>
      </tr>

      <tr className="separator:a806cbe3e17c9a2b04ca4c98c2ab976f8">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a130207be2c61cc7ca44c90de7b3aae6a" id="r_a130207be2c61cc7ca44c90de7b3aae6a">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a130207be2c61cc7ca44c90de7b3aae6a">secret</a></td>
      </tr>

      <tr className="memdesc:a130207be2c61cc7ca44c90de7b3aae6a">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Password of the credential to be created. <br /></td>
      </tr>

      <tr className="separator:a130207be2c61cc7ca44c90de7b3aae6a">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a7336923d8f272ddcce4d9a9ebb3c2693" id="r_a7336923d8f272ddcce4d9a9ebb3c2693">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a7336923d8f272ddcce4d9a9ebb3c2693">options</a></td>
      </tr>

      <tr className="memdesc:a7336923d8f272ddcce4d9a9ebb3c2693">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Optional parameters. <br /></td>
      </tr>

      <tr className="separator:a7336923d8f272ddcce4d9a9ebb3c2693">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a3e28b2e1d6ee457d0d127139c6369c7c">GPUdb::createCredential</a>. </p>
      <p>Create a new <a href="/content/concepts/credentials/" target="_top">credential</a>. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__credential_8h_source#l00019">19</a> of file <a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a7e31da8b6c51736f857af0b60fd734e9">◆ </a></span>CreateCredentialRequest() <span className="overload">\[1/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::CreateCredentialRequest::CreateCredentialRequest </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

                  <td />
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialRequest" title="A set of parameters for GPUdb::createCredential.">CreateCredentialRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__credential_8h_source#l00024">24</a> of file <a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::CreateCredentialRequest::CreateCredentialRequest </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>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateCredentialRequest" title="A set of parameters for GPUdb::createCredential.">CreateCredentialRequest</a> object with the specified parameters. </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>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__credential_8h_source#l00089">89</a> of file <a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Member Data Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#ad66b8830b8173ec9283f52867a1cdd12">◆ </a></span>credentialName</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::CreateCredentialRequest::credentialName</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Name of the credential to be created. </p>
        <p>Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match an existing credential name. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__credential_8h_source#l00103">103</a> of file <a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a806cbe3e17c9a2b04ca4c98c2ab976f8">◆ </a></span>identity</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::CreateCredentialRequest::identity</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>User of the credential to be created. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__credential_8h_source#l00145">145</a> of file <a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a7336923d8f272ddcce4d9a9ebb3c2693">◆ </a></span>options</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::CreateCredentialRequest::options</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Optional parameters. </p>
        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__credential_8h_source#l00155">155</a> of file <a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a130207be2c61cc7ca44c90de7b3aae6a">◆ </a></span>secret</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::CreateCredentialRequest::secret</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Password of the credential to be created. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__credential_8h_source#l00150">150</a> of file <a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a76b9dc9ee37d8a866a2d07602927843a">◆ </a></span>type</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::CreateCredentialRequest::type</td>
          </tr>
        </table>
      </div>

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

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

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__credential_8h_source#l00140">140</a> of file <a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a>.</p>
      </div>
    </div>

    <hr />

    The documentation for this struct was generated from the following file:

    <ul>
      <li>gpudb/protocol/<a className="el" href="/content/api/cpp/create__credential_8h_source">create\_credential.h</a></li>
    </ul>
  </div>
</div>
