SYSTEM$VALIDATE_STORAGE_INTEGRATION

functionsupportedIntegrations, network & secrets

docs.snowflake.com ↗

System functions

Validates the configuration for a specified storage integration. The function attempts to use the storage integration to write, read, list, or delete a file for a storage location that you specify by path. For more information about configuring storage integrations, see: - Snowflake storage integration for AWS - Snowflake storage integration for Google Cloud Storage - Snowflake storage integration for Microsoft Azure

Syntax

SYSTEM$VALIDATE_STORAGE_INTEGRATION( '<storage_integration_name>', '<storage_path>', '<test_file_name>', '<validate_action>' )

Parameters

NameRequiredDescription
storage_integration_namerequiredName of the storage integration to test. Storage integration names are case-sensitive.
storage_pathrequiredThe full path to a storage location that you want to validate. The storage path must be a URL in the STORAGE_ALLOWED_LOCATIONS list for the storage integration. Amazon S3's3://bucket/path/' The s3 prefix refers to S3 storage in public AWS regions. The s3gov prefix refers to S3 storage in government regions. bucket is the name of an S3 bucket that stores your data files. path is an optional path or directory in the bucket. Google Cloud Storage'gcs://bucket/path/' bucket is the name of a GCS bucket that stores your data files. path is an optional path or directory in the bucket. Microsoft Azure'azure://account.blob.core.windows.net/container/path/' account is the name of the Azure storage account. container is the name of an Azure blob storage container that stores your data files. path is an optional path or directory in the bucket.
test_file_namerequiredThe name of the file to use in storage integration validation.
validate_actionrequiredThe validation action to perform. Values: read - Validates that Snowflake can read from the storage location. This action fails if the file doesn’t exist. write - Validate that Snowflake can write to the storage location. This action fails if the file already exists. list - Validates that Snowflake can list the files in the storage location. delete - Validates that Snowflake can delete files in the storage location. all - Validates all possible actions in the storage location.

Returns

The function returns a JSON object with the properties described below:

See also