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

# create_datasource

### create\_datasource

<ul>
  <li>
    create\_datasource(\
    &#x20;name: string,\
    &#x20;location: string,\
    &#x20;user\_name: string,\
    &#x20;password: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[CreateDatasourceResponse](https://docs.kinetica.com/content/api/typescript/interfaces/CreateDatasourceResponse.md)>

    Creates a data source, which contains the location and connection information for a data store that is external to the database.

    #### Parameters

    <ul>
      <li>
        name: string

        Name of the data source to be created.
      </li>

      <li>
        location: string

        Location of the remote storage in 'storage\_provider\_type://\[storage\_path\[:storage\_port]]' format.Supported storage provider types are 'azure', 'gcs', 'hdfs', 'jdbc', 'kafka', 'confluent', and 's3'.
      </li>

      <li>
        user\_name: string

        Name of the remote system user; may be an empty string.
      </li>

      <li>
        password: string

        Password for the remote system user; may be an empty string.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CreateDatasourceResponse](https://docs.kinetica.com/content/api/typescript/interfaces/CreateDatasourceResponse.md)>

    Promise\<Types.CreateDatasourceResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:5970](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L5970)</li>
    </ul>
  </li>
</ul>

### create\_datasource\_request

<ul>
  <li>
    create\_datasource\_request(\
    &#x20;request: [CreateDatasourceRequest](https://docs.kinetica.com/content/api/typescript/interfaces/CreateDatasourceRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[CreateDatasourceResponse](https://docs.kinetica.com/content/api/typescript/interfaces/CreateDatasourceResponse.md)>

    Creates a data source, which contains the location and connection information for a data store that is external to the database.

    #### Parameters

    <ul>
      <li>
        request: [CreateDatasourceRequest](https://docs.kinetica.com/content/api/typescript/interfaces/CreateDatasourceRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CreateDatasourceResponse](https://docs.kinetica.com/content/api/typescript/interfaces/CreateDatasourceResponse.md)>

    Promise\<Types.CreateDatasourceResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:5936](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L5936)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.