cloudsync.list_directory¶
List contents of a remote bucket / directory.
If remote supports buckets, path is constructed by two keys “bucket”/”folder” in attributes. If remote does not support buckets, path is constructed using “folder” key only in attributes. “folder” is directory name and “bucket” is bucket name for remote.
Path examples:
S3 Service bucketname/directory/name
Dropbox Service directory/name
credentials is a valid id of a Cloud Sync Credential which will be used to connect to the provider.
No Additional Items
Tuple Validation
Parameter 1: cloud_sync_ls
cloud_sync_ls
Type: objectCloudSyncListDirectoryArgs parameters.
No Additional PropertiesCredentials
Type: integerID of the cloud credential to use for directory listing.
Encryption
Type: boolean Default: falseWhether files are encrypted in cloud storage.
Filename Encryption
Type: boolean Default: falseWhether filenames are encrypted in cloud storage.
Encryption Password
Type: string Default: ""Password for decrypting files and filenames.
Encryption Salt
Type: string Default: ""Salt value for encryption key derivation.
CloudTaskAttributes
Type: objectCloud provider-specific attributes for the listing operation.
No Additional PropertiesBucket
Type: stringName of the cloud storage bucket or container.
Must be at least 1
characters long
Folder
Type: stringPath within the cloud storage bucket to use as the root directory for operations.
Fast List
Type: booleanValid only for some providers. Use fewer transactions in exchange for more RAM. This may also speed up or slow down your transfer. See https://rclone.org/docs/#fast-list for more details.
Bucket Policy Only
Type: booleanValid only for GOOGLECLOUDSTORAGE provider. Access checks should use bucket-level IAM policies. If you want to upload objects to a bucket with Bucket Policy Only set then you will need to set this.
Chunk Size
Type: integerValid only for DROPBOX provider. Upload chunk size in MiB. Must fit in memory. Note that these chunks are buffered in memory and there might be a maximum of --transfers
chunks in progress at once. Dropbox Business accounts can have monthly data transfer limits per team per month. By using larger chunk sizes you will decrease the number of data transfer calls used and you'll be able to transfer more data to your Dropbox Business account.
Value must be greater or equal to 5
and strictly lesser than 150
Acknowledge Abuse
Type: booleanValid only for GOOGLE_DRIVER provider. Allow files which return cannotDownloadAbusiveFile to be downloaded. If downloading a file returns the error "This file has been identified as malware or spam and cannot be downloaded" with the error code "cannotDownloadAbusiveFile" then enable this flag to indicate you acknowledge the risks of downloading the file and TrueNAS will download it anyway.
Region
Type: stringValid only for S3 provider. S3 Region.
Encryption
Type: enum (of null or string)Valid only for S3 provider. Server-Side Encryption.
Must be one of:
- null
- "AES256"
Storage Class
Type: enum (of string)Valid only for S3 provider. The storage class to use.
Must be one of:
- ""
- "STANDARD"
- "REDUCED_REDUNDANCY"
- "STANDARD_IA"
- "ONEZONE_IA"
- "INTELLIGENT_TIERING"
- "GLACIER"
- "GLACIER_IR"
- "DEEP_ARCHIVE"
Args
Type: string Default: ""Additional arguments for the directory listing command.
Result
Type: array of objectArray of file and directory information objects.
No Additional ItemsEach item of this array must be:
Required roles: CLOUD_SYNC_WRITE