Skip to content

Inputs & Outputs

DirectoryItem

  • Contains information about files and directories present on the SFTP server

All DirectoryItem Keys

name: The name of the item.

is_dir: Denotes whether the item is a directory.

size: Size of the item in bytes.

last_modified: Date (UTC) the item was last modified.

YAML Structure

1
2
3
4
name: randomfile.txt
is_dir: false
size: 20
last_modified: "17:05 10/02/2021"

SFTPServer

  • Contains connection details for an SFTP server

  • The example below shows the dictionary structure in YAML

Supplying Credentials

You should always use a PPA Vault integration to provide credentials to a plugin action.

Example

1
2
3
4
5
sftp_server:
  address: 1.2.3.4
  port: 22
  username: [username]
  password: [password]
Required Keys

address: The target IP or DNS address.

port: The target SFTP port.

username: Username for authentication.

password: Password for authentication.