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

> create_datasink_request — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[generated](https://docs.kinetica.com/content/api/rust/generated/index.md)::<wbr />[api](https://docs.kinetica.com/content/api/rust/generated/api/index.md)::<wbr />[constants](https://docs.kinetica.com/content/api/rust/generated/api/constants/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L27230)&#x20;

Constants for the fields of the `/create/datasink` request.

## Option fields

### `options`

Constants for `options`.

`pub const AZURE_CONTAINER_NAME: &str = "azure_container_name";`

Name of the Azure storage container to use as the data sink.

`pub const AZURE_OAUTH_TOKEN: &str = "azure_oauth_token";`

Oauth token to access given storage container.

`pub const AZURE_SAS_TOKEN: &str = "azure_sas_token";`

Shared access signature token for Azure storage account to use as the data sink.

`pub const AZURE_STORAGE_ACCOUNT_NAME: &str = "azure_storage_account_name";`

Name of the Azure storage account to use as the data sink, this is valid only if tenant\_id is specified.

`pub const AZURE_TENANT_ID: &str = "azure_tenant_id";`

Active Directory tenant ID (or directory ID).

`pub const AZURE_USE_VIRTUAL_ADDRESSING: &str = "azure_use_virtual_addressing";`

Whether to use virtual addressing when referencing the Azure source.

`pub const CONNECTION_TIMEOUT: &str = "connection_timeout";`

Timeout in seconds for connecting to this data sink.

`pub const CREDENTIAL: &str = "credential";`

Name of the credential object to be used in this data sink.

`pub const FALSE: &str = "false";`

`pub const FLAT: &str = "flat";`

A single record is returned per message.

`pub const GCS_BUCKET_NAME: &str = "gcs_bucket_name";`

Name of the Google Cloud Storage bucket to use as the data sink.

`pub const GCS_PROJECT_ID: &str = "gcs_project_id";`

Name of the Google Cloud project to use as the data sink.

`pub const GCS_SERVICE_ACCOUNT_KEYS: &str = "gcs_service_account_keys";`

Google Cloud service account keys to use for authenticating the data sink.

`pub const HDFS_DELEGATION_TOKEN: &str = "hdfs_delegation_token";`

Delegation token for the given HDFS user.

`pub const HDFS_KERBEROS_KEYTAB: &str = "hdfs_kerberos_keytab";`

Kerberos keytab file location for the given HDFS user. This may be a KIFS file.

`pub const HDFS_USE_KERBEROS: &str = "hdfs_use_kerberos";`

Use kerberos authentication for the given HDFS cluster.

`pub const JDBC_DRIVER_CLASS_NAME: &str = "jdbc_driver_class_name";`

Name of the JDBC driver class.

`pub const JDBC_DRIVER_JAR_PATH: &str = "jdbc_driver_jar_path";`

JDBC driver jar file location.

`pub const JSON_FORMAT: &str = "json_format";`

The desired format of JSON encoded notifications message.

`pub const KAFKA_TOPIC_NAME: &str = "kafka_topic_name";`

Name of the Kafka topic to publish to if `destination` is a Kafka broker.

`pub const MAX_BATCH_SIZE: &str = "max_batch_size";`

Maximum number of records per notification message.

`pub const MAX_MESSAGE_SIZE: &str = "max_message_size";`

Maximum size in bytes of each notification message.

`pub const NESTED: &str = "nested";`

Records are returned as an array per message.

`pub const S3_AWS_ROLE_ARN: &str = "s3_aws_role_arn";`

Amazon IAM Role ARN which has required S3 permissions that can be assumed for the given S3 IAM user. Assuming the role requires access keys, from the credential, or use\_managed\_credentials set to true; with neither, connecting to the bucket fails.

`pub const S3_BUCKET_NAME: &str = "s3_bucket_name";`

Name of the Amazon S3 bucket to use as the data sink.

`pub const S3_ENCRYPTION_CUSTOMER_ALGORITHM: &str = "s3_encryption_customer_algorithm";`

Customer encryption algorithm used encrypting data.

`pub const S3_ENCRYPTION_CUSTOMER_KEY: &str = "s3_encryption_customer_key";`

Customer encryption key to encrypt or decrypt data.

`pub const S3_ENCRYPTION_TYPE: &str = "s3_encryption_type";`

Server side encryption type.

`pub const S3_KMS_KEY_ID: &str = "s3_kms_key_id";`

KMS key.

`pub const S3_REGION: &str = "s3_region";`

Name of the Amazon S3 region where the given bucket is located.

`pub const S3_USE_VIRTUAL_ADDRESSING: &str = "s3_use_virtual_addressing";`

Whether to use virtual addressing when referencing the Amazon S3 sink.

`pub const S3_VERIFY_SSL: &str = "s3_verify_ssl";`

Whether to verify SSL connections.

`pub const SKIP_VALIDATION: &str = "skip_validation";`

Bypass validation of connection to this data sink.

`pub const TRUE: &str = "true";`

`pub const USE_HTTPS: &str = "use_https";`

Use HTTPS to connect to datasink if true, otherwise use HTTP.

`pub const USE_MANAGED_CREDENTIALS: &str = "use_managed_credentials";`

When no credentials are supplied, we use anonymous access by default. If this is set, we will use cloud provider user settings.

`pub const WAIT_TIMEOUT: &str = "wait_timeout";`

Timeout in seconds for waiting for a response from this data sink.


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