Manage files in tenant object store¶
You can use the SDK's FileClient to manage your files
within Atlan's tenant object store by leveraging presigned URLs.
Upload a file to the object store¶
To upload a file to the tenant object store:
| Upload a file to the tenant object store | |
|---|---|
1 | |
-
To upload the file to the object store, you must specify the following flags:
-f or --file: path to the file to be uploaded to the object store.--r or --remote: actual object name where you want to upload the file (e.g:prefix/object_name).
CLI must be configured
Make sure you have the CLI configured before running the above command.
Coming soon
| Upload a file to the tenant object store | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
-
Begin by generating a presigned URL for the object store. You need to specify:
- actual object name where you want to upload the file (e.g:
prefix/object_name). - expiration time interval for the presigned URL.
- presigned URL method (
PUTfor upload).
- actual object name where you want to upload the file (e.g:
-
Finally, upload the file to the object store by providing:
- any valid presigned URL.
- path to the file to be uploaded to the object store.
Coming soon
| Upload a file to the tenant object store | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
-
Begin by generating a presigned URL for the object store. You need to specify:
- actual object name where you want to upload the file (e.g:
prefix/object_name). - expiration time interval for the presigned URL.
- presigned URL method (
PUTfor upload).
- actual object name where you want to upload the file (e.g:
-
Finally, upload the file to the object store by providing:
- any valid presigned URL.
- path to the file to be uploaded to the object store.
| POST /api/service/files/presignedUrl | |
|---|---|
1 2 3 4 5 | |
- The presigned URL method (
PUTfor upload). - The actual object name where you want to upload the file (e.g:
prefix/object_name). - An expiration time interval for the presigned URL.
Download a file from the object store¶
To download a file from the tenant object store:
| Download a file to the tenant object store | |
|---|---|
1 | |
-
To download the file from the object store, you must specify the following flags:
-r or --remote: actual object name you want to download (e.g:prefix/object_name).--o or --output: path to the location where you want to save the downloaded file.
CLI must be configured
Make sure you have the CLI configured before running the above command.
Coming soon
| Download a file from the tenant object store | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
-
Begin by generating a presigned URL for the object store. You need to specify:
- actual object name you want to download (e.g:
prefix/object_name). - expiration time interval for the presigned URL.
- presigned URL method (
GETfor download).
- actual object name you want to download (e.g:
-
Finally, download the file from the object store by providing:
- any valid presigned URL.
- path to the location where you want to save the downloaded file.
Coming soon
| Download a file from the tenant object store | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
-
Begin by generating a presigned URL for the object store. You need to specify:
- actual object name you want to download (e.g:
prefix/object_name). - expiration time interval for the presigned URL.
- presigned URL method (
GETfor download).
- actual object name you want to download (e.g:
-
Finally, download the file from the object store by providing:
- any valid presigned URL.
- path to the location where you want to save the downloaded file.
| POST /api/service/files/presignedUrl | |
|---|---|
1 2 3 4 5 | |
- The presigned URL method (
GETfor download). - The actual object name you want to download (e.g:
prefix/object_name). - An expiration time interval for the presigned URL.