Component to interact with Dropbox. Dropbox is a cloud storage service, which allows copy files to the cloud and accesses them later from a different device.
The technical notes page gives some technical details about Dropbox component like changelog and completeness matrix.
It is used Dropbox JavaScript SDK.
Name | Mandatory | Description | Values |
---|---|---|---|
ATTACHMENT_MAX_SIZE |
false | For elastic.io attachments configuration. Maximal possible attachment size in bytes. By default set to 1000000 and according to platform limitations CAN’T be bigger than that. |
Up to 1000000 bytes |
Please Note: From the platform version 20.51 we deprecated the component
LOG_LEVEL
environment variable. Now you can control logging level per each step of the flow.
The Dropbox SDK uses OAuth 2 for authorizing API requests. Dropbox requires an access token to make authenticated requests.
You should create, set up your app, see OAuth guide, and generate access token
.
Use generated previously access token
.
This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.
Action to get file from Dropbox by provided path
Default No
. In case No
is selected - an error will be thrown when no files were found,
If Yes
is selected - an empty object will be returned instead of throwing an error.
Default No
. In case No
is selected - an error will be thrown when file path is missing in metadata, if Yes
is selected - an empty object will be returned instead of throwing an error.
Checkbox for attaching files content to action response
{
"path": "/inner_folder/file.any"
}
{
".tag": "file",
"name": "file.any",
"path_lower": "/file.any",
"path_display": "/file.any",
"id": "id:Ua3SpE_E_CAAAAAAAAAACA",
"client_modified": "2020-03-31T11:25:40Z",
"server_modified": "2020-03-31T11:25:40Z",
"rev": "015a224d3e0147b00000001b724db90",
"size": 28,
"is_downloadable": true,
"content_hash": "10931f016454cbd4d852632b81f2e5ab2502dc120e2afb7efcd6b64fb9d27e7a"
}
Action upserts (create or replace) with file from attachment by provided path in Microsoft One Drive. If more then 1 attachments (or no attachments) provided the action will throw an error:
{
"path": "/base_folder/inner_folder/file.any"
}
{
".tag": "file",
"name": "file.any",
"path_lower": "/file.any",
"path_display": "/file.any",
"id": "id:Ua3SpE_E_CAAAAAAAAAACA",
"client_modified": "2020-03-31T11:25:40Z",
"server_modified": "2020-03-31T11:25:40Z",
"rev": "015a224d3e0147b00000001b724db90",
"size": 28,
"is_downloadable": true,
"content_hash": "10931f016454cbd4d852632b81f2e5ab2502dc120e2afb7efcd6b64fb9d27e7a",
"url": "http://maester-service.platform.svc.cluster.local:3002/objects/70d14266-37ae-46b7-b485-d4a2948b24e7?storage_type=maester"
}
Action to delete folder or file from Dropbox by provided path:
{
"path": "base_folder/inner_folder/file.any"
}
{
"metadata":{
"path":"/test/DeleteByPath/Document.docx"
},
"result":"path_lookup/not_found/...",
"error":{
".tag":"path_lookup",
"path_lookup":{
".tag":"not_found"
}
}
}
{
"metadata":{
".tag":"file",
"name":"Document.docx",
"path_lower":"/test/deletebypath/document.docx",
"path_display":"/test/DeleteByPath/Document.docx",
"id":"id:o0yGDTvyrFAAAAAAAAAAIw",
"client_modified":"2020-03-31T13:32:00Z",
"server_modified":"2020-03-31T13:32:01Z",
"rev":"015a22697b3373f000000013a1ecc50",
"size":10982,
"is_downloadable":true,
"content_hash":"8424108d60c2a77a6c36355e4a974882a79ca4ecd25a611f0c0b68713d31a044"
},
"result":"deleted"
}
Create new folder in provided path
. Path should contains folder name:
Fail
. Options: Fail
, Rename
, Skip
.
Fail
- fails if folder with same name already exists under provided path
Rename
- rename folder if folder with same name already exists under provided path
. Examples: exists
-> exists (1)
, exists (1)
-> exists (1) (1)
Skip
- ignore error for already existing folder, returns {}
if selected/
for root{
"path": "/test/create/folder"
}
{
"name": "Folder",
"path_lower": "/test/create/folder",
"path_display": "/test/create/Folder",
"id": "id:U6e6XFFVGvAAAAAAAAAAlw"
}
Click here to learn more about the elastic.io iPaaS