upload_sftp
Type: Function
Upload files to SFTP.
| Argument | Type | Description |
|---|---|---|
file |
accessors.OSPath (required) | The file to upload |
name |
string | The name of the file that should be stored on the server (may contain the path) |
user |
string | The username to connect to the endpoint with |
path |
string | Path on server to upload file to (will be prepended to name) |
accessor |
string | The accessor to use |
privatekey |
string | The private key to use |
endpoint |
string | The Endpoint to use including port number (e.g. 192.168.1.1:22 ) |
hostkey |
string | Host key to verify. Blank to disable |
secret |
string | Alternatively, use a secret from the secrets service. Secret must be of type ‘SSH PrivateKey’ |
Required permissions: FILESYSTEM_READ, NETWORK
Platforms: macOS, Linux, Windows
Source: vql/tools/sftp_upload.go