...
The configuration file is following the INI format, and contains all required parameters and credentials to connect to a Storage System. All configuration options per Storage System can be found in the respective "Config Rclone documentation" here.
It is advised that account credentials, tokens, or any other essential information to be passed as an encrypted Resolvable Credential field. To set a value with the respective Credential field, please make sure to use the appropriate Credential function inside the configuration file.
Note Please note that 'Runtime Password' Credentials field , supports values with up to 512 characters.
Hard coded values can be provided in the script file, as well. However, it is not advised for security reasons.
It is recommended to configure a storage system section, one to one with the Credential fields in this Universal Extension (please refer to the Input Fields section below).
For local file system Storages, no credentials are required in the configuration file. The selected action will be executed with the Credentials that are provided in the "Agent Details" of the Universal Task. If no Credentials are provided for the used Agent, then the same user that runs ubroker daemon will be used.
Script Type should be Data, and option Resolve UAC Variables should be enabled.
...
The input fields for this Universal Extension are described below.
Field | Input type | Default value | Type | Description |
---|---|---|---|---|
Action | Required | Monitor On Create | Choice | Action to be performed. Available actions:
|
Trigger On Existence | Optional | False | Boolean | When this flag is enabled and objects already exist on the given Storage Filepath , an event will be published. Otherwise, Universal Task will keep monitoring for new objects creation. Optional when Action Monitor On Create is selected. |
Configuration File | Required | - | Script | Rclone Configuration file, that contains all required parameters to connect to the Storage System. |
Storage System | Optional | - | Dynamic Choice Field | Remote or Local storage to execute the selected Action. Execute the Dynamic Choice Field and retrieve all the available Storages from Configuration File. This field is included as an Event Attribute. |
Storage Credentials | Optional | - | Credential | Credentials needed to connect to the selected Storage System. For Storage System of type local , the standard Agent's Credentials field should be provided. |
Storage Filepath | Optional | - | Text | Path to monitor objects for the selected Action. This field is included as an Event Attribute. |
Update Credentials | Optional | False | Boolean | This field needs to be used when Rclone executable updates Fields on its Configuration File during execution, that need to be stored as Credential Fields on the Universal Controller. For example: when OneDrive Storage type is used. In this case, the existing configured token is exchanged by Rclone with a new one to establish the connection. This new token should be stored on Universal Controller for the next task execution. Please read Rclone limitations on OneDrive token refresh here. This field is used in conjunction with fields Controller URL, Controller Credentials, Refresh Storage Credentials. |
Controller URL | Optional | - | Text | Controller URL where Storage Credentials are stored. Required when Update Credentials is checked. |
Controller Credentials | Optional | - | Credentials | Controller user's credentials, used for logging and updating Storage Credentials will be updated. The Credentials definition should be as follows:
Required when Update Credentials is checked. |
Refresh Storage Credentials | Optional | - | Array | This Array field is available when Update Credentials is set to True and used as a mapping table that indicates which field from the Configuration File of Rclone is used to update which Credential entry field on Universal Controller. Populate this array with the following format:
Note: Refresh of Storage Credentials is performed via Controller's REST API. See Network and Connectivity Requirements |
Monitor Time Interval | Optional | 300 | Integer | Interval period in seconds used to monitor the given Storage Filepath. |
Use Filter | Optional | -- None -- | Choice | The filter type that is applied on the Action. Available options:
|
Filter | Optional | - | Text | Filter based on Rclone filtering rules that is applied on the Action. Required when Use Filter is checked. |
Files Only | Optional | False | Boolean | When enabled, directories will be ignored and only files will be monitored. |
Use Storage System Modified Time | Optional | True | Boolean | When enabled, the time of the Storage System will be observed as the object's modification time, instead of the original object's modified time stored as metadata. Note: Having this option enabled, increases performance. |
Recursion Depth | Optional | 1 | Integer | Recursion depth that is applied. Default value 1 means that no recursion will be applied. |
Additional Options | Optional | - | Text | Space separated Rclone options that applied to the selected Action. |
Correlation ID | Optional | - | Text | Use this field optionally to pass extra custom information to the published event (for example: provide the parent Workflow task instance ID). This field is included as an Event Attribute. |
Cloud Data Monitor Events
...
- no specific Cloud Data Monitor Task (Publisher): in this case Universal Monitor will be consuming the configured Events from any Task Instance of type Cloud Data Monitor.
- specific Cloud Data Monitor Task (Publisher): in this case Universal Monitor will be consuming the configured Events only from the defined Cloud Data Monitor Task.
Note |
---|
In a Universal Monitor Task, Event Type should always be "Local". Monitor Criteria of a Universal Monitor Task, are the Attributes of the associated Event Template. |
Workflow Example
Within a Workflow, only the Universal Monitor Task is configured, and is a direct workflow child. Cloud Data Monitor Task is directly associated with Universal Monitor Task, but is not in the scope of Workflow.
...