Download SFTP with YAML

Download SFTP [Password]

YAML parameters for Download SFTP

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to DOWNLOAD_SSH.
source_path RequiredStringThe path from which the file will be downloaded.
destination_path RequiredStringThe path in which the file will be saved.
authentication_mode RequiredStringThe authentication mode for SSH. Should be set to PASS.
host RequiredStringThe host for the connection.
login RequiredStringThe username required to connect to the server.
port RequiredStringThe port for the connection.
password RequiredStringThe password required to connect to the server.
overwriteBooleanReplace files if they already exist.
recursiveBooleanIf set to true, the whole directory tree is downloaded, otherwise only the files from the path are downloaded.
download_excludesString[]The paths and/or files that will be left out during the download.
download_includesString[]The exceptions from the ignore patterns set in download_excludes.

YAML example for Download SFTP

yaml
actions: - action: "Download files from $host" type: "DOWNLOAD_SSH" source_path: "source" destination_path: "destination" login: "username" password: "secure!5UXoMgihE1fTjZLTupXKQw==" host: "$host" port: "22" authentication_mode: "PASS" recursive: true overwrite: true download_excludes: - "/tmp" - "*.log" download_includes: - "/tmp/assets" - "/tmp/styles"

Download SFTP [Private key]

YAML parameters for Download SFTP

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to DOWNLOAD_SSH.
source_path RequiredStringThe path from which the file will be downloaded.
destination_path RequiredStringThe path in which the file will be saved.
authentication_mode RequiredStringThe authentication mode for SSH. Should be set to PRIVATE_KEY.
port RequiredStringThe port for the connection.
host RequiredStringThe host for the connection.
login RequiredStringThe username required to connect to the server.
server_key RequiredStringThe private SSH key. Required if authentication_mode is set to PRIVATE_KEY.
passphraseStringThe passphrase for the private SSH key.
overwriteBooleanReplace files if they already exist.
recursiveBooleanIf set to true, the whole directory tree is downloaded, otherwise only the files from the path are downloaded.
download_excludesString[]The paths and/or files that will be left out during the download.
download_includesString[]The exceptions from the ignore patterns set in download_excludes.

YAML example for Download SFTP

yaml
actions: - action: "Download files from $host" type: "DOWNLOAD_SSH" source_path: "source" destination_path: "destination" login: "username" host: "$host" port: "22" server_key: "secure!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C+FBkmd6755IOed2u2GmxS8RkeluSM1UNDqzYyMJNIwUumd+7nlmXvKEHQRyl0u8UNf/m9xcw11OLkjJ0YrIfXZ536+J0ijaLmv+l3VrgSblHKjQi1AOOFXRyUIFli/NW8tBdhr8+06sUKrqiELSHXWOL1qmMGH5LwzgAa4OsFQy22P/tGPebmfH2eCxmjdo5caybfdpFbguGA1WVDrKfN79o50lHH+EYbBMf1VAH52cx+MG7zjv9kRRggGLjwQT/c8DvtJfOb/2xNp8id+TIg9N/QRj1hDAqCoJjgHcrMAuGl97GtD0Br4HYA=" passphrase: "secure!nfCk+GRjNmO5MDDWo0YhaQ==" authentication_mode: "PRIVATE_KEY" recursive: true overwrite: true download_excludes: - "/tmp" - "*.log" download_includes: - "/tmp/assets" - "/tmp/styles"

Download SFTP [Private Key & Password]

YAML parameters for Download SFTP

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to DOWNLOAD_SSH.
source_path RequiredStringThe path from which the file will be downloaded.
destination_path RequiredStringThe path in which the file will be saved.
authentication_mode RequiredStringThe authentication mode for SSH. Should be set to PRIVATE_KEY_AND_PASS.
host RequiredStringThe host for the connection.
port RequiredStringThe port for the connection.
login RequiredStringThe username required to connect to the server.
server_key RequiredStringThe private SSH key. Required if authentication_mode is set to PRIVATE_KEY_AND_PASS.
password RequiredStringThe password required to connect to the server.
passphraseStringThe passphrase for the private SSH key.
overwriteBooleanReplace files if they already exist.
recursiveBooleanIf set to true, the whole directory tree is downloaded, otherwise only the files from the path are downloaded.
download_excludesString[]The paths and/or files that will be left out during the download.
download_includesString[]The exceptions from the ignore patterns set in download_excludes.

YAML example for Download SFTP

yaml
actions: - action: "Download files from $host" type: "DOWNLOAD_SSH" source_path: "source" destination_path: "destination" login: "username" password: "secure!eFZnNKPlAOcrTFuuUMwUZA==" host: "$host" port: "22" server_key: "secure!YV0UUNgHJDor+j/91kVLhmXuVQ8Y49wGW72la6oKu7vk8+ELndX2FIQsvFv2w8adJIO2CQ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NTeW/y8SyR83cqHVCP2ZRo77aXAkOutIfKZrB35GmIElAQCmwGnYEegOgAhSZsqIFa1LXnYaOWNnk49vySNeCev7XeXGXejtDHqRMUJ63S7UBqzCk0G2bA90dPIsJsRbPJjhB44YiazsuaHYF7zsJJVMimdxngEj+A+c3/WHPZrOdVezBU/fTlwZIj3LiGu/cL972SlSXTvwJ+Zn6M5GYAcS5krvT3oeGuNc/3r5p/Tq6OrWg==" passphrase: "secure!BYICUSM6rLTnFVoxW9goOQ==" authentication_mode: "PRIVATE_KEY_AND_PASS" recursive: true overwrite: true download_excludes: - "/tmp" - "*.log" download_includes: - "/tmp/assets" - "/tmp/styles"

Download SFTP [Private key from environment variables]

YAML parameters for Download SFTP

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to DOWNLOAD_SSH.
source_path RequiredStringThe path from which the file will be downloaded.
destination_path RequiredStringThe path in which the file will be saved.
authentication_mode RequiredStringThe authentication mode for SSH. Should be set to ENV_KEY.
host RequiredStringThe host for the connection.
login RequiredStringThe username required to connect to the server.
env_key RequiredStringThe private SSH key name defined in environment variables.
port RequiredStringThe port for the connection.
overwriteBooleanReplace files if they already exist.
recursiveBooleanIf set to true, the whole directory tree is downloaded, otherwise only the files from the path are downloaded.
download_excludesString[]The paths and/or files that will be left out during the download.
download_includesString[]The exceptions from the ignore patterns set in download_excludes.

YAML example for Download SFTP

yaml
actions: - action: "Download files from $host" type: "DOWNLOAD_SSH" source_path: "source" destination_path: "destination" login: "username" host: "$host" port: "22" env_key: "secure!YvhFlwSQj1iuWIIFnhNjgA==" authentication_mode: "ENV_KEY" recursive: true overwrite: true download_excludes: - "/tmp" - "*.log" download_includes: - "/tmp/assets" - "/tmp/styles"

Proxy

To define a proxy server, use the following parameters:

NameTypeDescription
proxy_loginStringThe username required to connect to the proxy server.
proxy_hostStringThe host for the proxy connection.
proxy_portStringThe port for the proxy connection.
proxy_authentication_modeStringThe authentication mode for SSH proxy connection. Can be set to PASS, PRIVATE_KEY, PRIVATE_KEY_AND_PASS or ENV_KEY.
proxy_passwordStringThe password required to connect to the proxy server.
proxy_passphraseStringThe passphrase for the private SSH key.
proxy_env_keyStringThe private SSH key name defined in environment variables.
proxy_server_keyStringThe private SSH key.

Example for Proxy Password

yaml
proxy_authentication_mode: "PASS" proxy_login: "proxyUser" proxy_host: "proxyHost" proxy_port: "proxyPort" proxy_password: "secure!k/jFegNf7aQx45852g39dg==.N3PyCtKkDwTnpVvXp5RHbw=="

Example for Proxy Private Key

yaml
proxy_authentication_mode: "PRIVATE_KEY" proxy_login: "proxyUser" proxy_host: "proxyHost" proxy_port: "proxyPort" proxy_passphrase: "secure!k/jFegNf7aQx45852g39dg==.N3PyCtKkDwTnpVvXp5RHbw==" proxy_server_key: "secure!k/jFegNf7aQx45852g39dg==.N3PyCtKkDwTnpVvXp5RHbw=="

Example for Proxy Private Key and Password

yaml
proxy_authentication_mode: "PRIVATE_KEY_AND_PASS" proxy_login: "proxyUser" proxy_host: "proxyHost" proxy_port: "proxyPort" proxy_password: "secure!k/jFegNf7aQx45852g39dg==.N3PyCtKkDwTnpVvXp5RHbw==" proxy_passphrase: "secure!k/jFegNf7aQx45852g39dg==.N3PyCtKkDwTnpVvXp5RHbw==" proxy_server_key: "secure!k/jFegNf7aQx45852g39dg==.N3PyCtKkDwTnpVvXp5RHbw=="

Example for Proxy Env Key

yaml
proxy_authentication_mode: "ENV_KEY" proxy_login: "proxyUser" proxy_host: "proxyHost" proxy_port: "proxyPort" proxy_env_key: "secure!ioUb9m6kYw1HgYw9Bg5Yqw==.lstPCaFyljrGmSbpb6M6VQ=="

Last modified on Sep 23, 2024