Verify bucket connectivity
Verify connectivity to a storage bucket and optionally list its contents. This endpoint allows you to:
- Check if the provided bucket credentials are valid and the bucket is accessible.
- Optionally list files in the bucket up to a specified limit.
- Validate the bucket configuration before adding it to the organization.
The request can include details such as the bucket name, region, credentials, and listing options. The response provides information about the bucket's accessibility and, if requested, a list of files in the bucket.
Important note on verification process:
- For S3-compatible storage backends: Verification is expected to be immediate.
- For Azure buckets: Verification takes longer. Users are required to poll this endpoint until the connectionStatus changes from 'connecting' to 'connected'.
When dealing with Azure buckets, implement a polling mechanism to check the status periodically until it's confirmed as connected.
/api/organizations/{organizationId}/buckets/verify
Organization ID
The type of storage backend to use. Supported options are:
- 's3': Amazon S3
- 'google': Google Cloud Storage
- 'azure': Azure Blob Storage
- 'other': Other S3-compatible storage If not specified, defaults to 's3'
s3
, google
, azure
, other
Access key for the storage service:
- For S3 and GCS: Use the access key.
- For Azure: Use the Storage Account Name.
Secret key for the storage service:
- For S3 and GCS: Use the secret key.
- For Azure: Use the Storage Account Access Key.
Note: You should either pass a
secretKey
value or abucketId
value.
ID of an existing bucket. If provided, the credentials from this bucket
will be used unless overridden by the secretKey
property.
Name of the storage bucket or container.
Endpoint URL for the storage service. For S3-compatible services, Azure, or custom endpoints.
Optional region of the storage service (if applicable).
Optional prefix within the bucket. Set this if you don't have access to the full bucket or want to limit the scope.
Last updated
Was this helpful?