Skip to main content

Constants for the fields of the /alter/datasource request.

Option fields

datasource_updates_map

Constants for datasource_updates_map.

pub const ANONYMOUS: &str = “anonymous”;

Create an anonymous connection to the storage provider–DEPRECATED: this is now the default. Specify use_managed_credentials for non-anonymous connection.

pub const AZURE_CONTAINER_NAME: &str = “azure_container_name”;

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

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

pub const AZURE_STORAGE_ACCOUNT_NAME: &str = “azure_storage_account_name”;

Name of the Azure storage account to use as the data source, 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 storage provider.

pub const CREDENTIAL: &str = “credential”;

Name of the credential object to be used in data source.

pub const FALSE: &str = “false”;
pub const GCS_BUCKET_NAME: &str = “gcs_bucket_name”;

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

pub const GCS_PROJECT_ID: &str = “gcs_project_id”;

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

pub const GCS_SERVICE_ACCOUNT_KEYS: &str = “gcs_service_account_keys”;

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

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. This may be a KIFS file.

pub const KAFKA_TOPIC_NAME: &str = “kafka_topic_name”;

Name of the Kafka topic to use as the data source.

pub const KAFKA_URL: &str = “kafka_url”;

The publicly-accessible full path URL to the Kafka broker, e.g., ‘http://172.123.45.67:9300’.

pub const LOCATION: &str = “location”;

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

pub const PASSWORD: &str = “password”;

Password for the remote system user; may be an empty string.

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 the user_name and password, 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 source.

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_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 source.

pub const S3_VERIFY_SSL: &str = “s3_verify_ssl”;

Whether to verify SSL connections.

pub const SCHEMA_NAME: &str = “schema_name”;

Updates the schema name. If schema_name doesn’t exist, an error will be thrown. If schema_name is empty, then the user’s default schema will be used.

pub const SCHEMA_REGISTRY_CONNECTION_RETRIES: &str = “schema_registry_connection_retries”;

Confluent Schema registry connection timeout (in secs).

pub const SCHEMA_REGISTRY_CONNECTION_TIMEOUT: &str = “schema_registry_connection_timeout”;

Confluent Schema registry connection timeout (in secs).

pub const SCHEMA_REGISTRY_CREDENTIAL: &str = “schema_registry_credential”;

Confluent Schema Registry credential object name.

pub const SCHEMA_REGISTRY_LOCATION: &str = “schema_registry_location”;

Location of Confluent Schema Registry in ‘[storage_path[:storage_port]]’ format.

pub const SCHEMA_REGISTRY_PORT: &str = “schema_registry_port”;

Confluent Schema Registry port (optional).

pub const SKIP_VALIDATION: &str = “skip_validation”;

Bypass validation of connection to remote source.

pub const TRUE: &str = “true”;
pub const USER_NAME: &str = “user_name”;

Name of the remote system user; may be an empty string.

pub const USE_HTTPS: &str = “use_https”;

Use HTTPS to connect to datasource 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 reading from this storage provider.