sharedfile_from_any
This method retrieves a file shared from other Rudder node.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
file_id | Unique name that was used to identify the file on the sender. This parameter must match ^[A-z0-9._-]+$ .This parameter is required. |
file_path | Where to put the file content. This parameter is required. |
Outcome conditions
You need to replace ${file_id}
with its actual canonified value.
- ✅ Ok:
sharedfile_from_any_${file_id}_ok
- ☑️ Already compliant:
sharedfile_from_any_${file_id}_kept
- 🟨 Repaired:
sharedfile_from_any_${file_id}_repaired
- ☑️ Already compliant:
- ❌ Error:
sharedfile_from_any_${file_id}_error
Example
method: sharedfile_from_any
params:
file_path: VALUE
file_id: VALUE
Documentation
This method retrieves a file shared from many Rudder node using a unique file identifier.
The files will be downloaded using native agent protocol and all copied into a single directory. The destination path must be the complete absolute path of the destination directory. The destination files will be named <file_id>.<node_uuid> Any other destination files starting with <file_id> will be removed.
See sharedfile_to_node for a complete example.