DeleteSFTP Processor
描述
删除驻留在 SFTP 服务器上的文件。
标签
使用场景
仅在处理完成后删除源文件
检索位于 SFTP 服务器上的文件,例如使用 'ListSFTP' 和 'FetchSFTP'。
使用任意处理器组合处理该文件。
将结果文件存储到目标位置,例如使用 'PutFile'。
使用 'DeleteSFTP',仅在结果存储后才删除位于 SFTP 服务器上的文件。
属性
| 名称 | 默认值 | 可选值 | 描述 |
|---|---|---|---|
| Removal Strategy | FILE |
| 指定是否删除文件或目录 |
| Directory Path | ${path} | 要删除的实际目录的路径或要删除的文件所在目录的路径。 支持表达式语言:是(使用 FlowFile 属性与环境/系统变量求值) | |
| Filename | ${filename} | 要删除的文件的名称。 支持表达式语言:是(使用 FlowFile 属性与环境/系统变量求值) | |
| Hostname | | 远程系统的完全限定主机名或 IP 地址 支持表达式语言:是(使用 FlowFile 属性与环境/系统变量求值) | |
| Port | 22 | 远程系统正在侦听文件传输的端口 支持表达式语言:是(使用 FlowFile 属性与环境/系统变量求值) | |
| Username | | 用户名 支持表达式语言:是(使用 FlowFile 属性与环境/系统变量求值) | |
| Password | | 用户帐户的密码 敏感属性:是 支持表达式语言:是(使用 FlowFile 属性与环境/系统变量求值) | |
| Private Key Path | | 私钥文件的完全限定路径 支持表达式语言:是(使用 FlowFile 属性与环境/系统变量求值) | |
| Private Key Passphrase | | 私钥的密码 敏感属性:是 支持表达式语言:是(使用 FlowFile 属性与环境/系统变量求值) | |
| Strict Host Key Checking | false |
| 指示是否应严格执行主机密钥 |
| Host Key File | | 如果提供,给定的文件将用作主机密钥;否则,如果应用了 'Strict Host Key Checking' 属性(设置为 true),则使用 ~/.ssh 目录中的 'known_hosts' 和 'known_hosts2' 文件,否则不使用主机密钥文件。 | |
| Batch Size | 500 | 单个连接中发送的最大 FlowFile 数量 | |
| Connection Timeout | 30 sec | 创建连接时超时之前等待的时间量 | |
| Data Timeout | 30 sec | 在本地和远程系统之间传输文件时,该值指定允许在系统之间不传输任何数据的时间长度 | |
| Send Keep Alive On Timeout | true |
| 每 5 秒发送一条“保持活动”消息,最多发送 5 次,总超时时间为 25 秒。 |
| Use Compression | false |
| 指示传输文件时是否应使用 ZLIB 压缩 |
| Proxy Configuration Service | | 控制器服务 API:ProxyConfigurationServicecn.org.acal.lynxus-lynxus-standard-services-api-nar-2.11.8 | 指定代理配置 Controller Service 来代理网络请求。 |
| Algorithm Negotiation | DEFAULT |
| SSH算法协商配置策略 |
| Ciphers Allowed | | 允许的 SFTP 连接密码的逗号分隔列表。留空以允许所有。可用选项包括:3des-cbc, aes128-cbc, aes128-ctr, aes128-gcm@openssh.com, aes192-cbc, aes192-ctr, aes256-cbc, aes256-ctr, aes256-gcm@openssh.com, arcfour128, arcfour256, blowfish-cbc, chacha20-poly1305@openssh.com, none 支持表达式语言:是(仅使用环境/系统变量求值) | |
| Key Algorithms Allowed | | 允许的 SFTP 连接密钥算法的逗号分隔列表。留空以允许所有。可用选项包括:ecdsa-sha2-nistp256, ecdsa-sha2-nistp256-cert-v01@openssh.com, ecdsa-sha2-nistp384, ecdsa-sha2-nistp384-cert-v01@openssh.com, ecdsa-sha2-nistp521, ecdsa-sha2-nistp521-cert-v01@openssh.com, rsa-sha2-256, rsa-sha2-256-cert-v01@openssh.com, rsa-sha2-512, rsa-sha2-512-cert-v01@openssh.com, sk-ecdsa-sha2-nistp256@openssh.com, sk-ssh-ed25519@openssh.com, ssh-dss, ssh-dss-cert-v01@openssh.com, ssh-ed25519, ssh-ed25519-cert-v01@openssh.com, ssh-rsa, ssh-rsa-cert-v01@openssh.com 支持表达式语言:是(仅使用环境/系统变量求值) | |
| Key Exchange Algorithms Allowed | | 允许的 SFTP 连接密钥交换算法的逗号分隔列表。留空以允许所有。可用选项包括:curve25519-sha256, curve25519-sha256@libssh.org, curve448-sha512, diffie-hellman-group-exchange-sha1, diffie-hellman-group-exchange-sha256, diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, diffie-hellman-group14-sha256, diffie-hellman-group15-sha512, diffie-hellman-group16-sha512, diffie-hellman-group17-sha512, diffie-hellman-group18-sha512, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, mlkem1024nistp384-sha384, mlkem768nistp256-sha256, mlkem768x25519-sha256, sntrup761x25519-sha512, sntrup761x25519-sha512@openssh.com 支持表达式语言:是(仅使用环境/系统变量求值) | |
| Message Authentication Codes Allowed | | 允许的 SFTP 连接消息认证码的逗号分隔列表。留空以允许所有。可用选项包括:hmac-md5, hmac-md5-96, hmac-sha1, hmac-sha1-96, hmac-sha1-etm@openssh.com, hmac-sha2-256, hmac-sha2-256-etm@openssh.com, hmac-sha2-512, hmac-sha2-512-etm@openssh.com 支持表达式语言:是(仅使用环境/系统变量求值) |
关系 (Relationships)
| 名称 | 描述 | 自动终止 |
|---|---|---|
failure | 无法删除现有文件的所有 FlowFile 都将路由到此关系 | 否 |
not found | 所有要删除的文件不存在的 FlowFile 都将路由到此关系 | 否 |
success | 所有已删除现有文件的 FlowFile 都将路由到此关系 | 否 |
状态管理
该组件不存储状态。
受限 (Restricted)
该组件不受限。
输入要求
该组件要求有传入连接。