FTP
Updated at:
Defines the connection properties for an FTP data source in DataWorks.
Data source type:
ftpSupported configuration mode: Connection string mode (
UrlMode)
Property definition
Connection string mode
| Parameter | Type | Example | Required | Description |
|---|---|---|---|---|
protocol | String | ftp | Yes | The transfer protocol. Valid values: ftp, sftp, ftps. |
host | String | 10.0.0.1 | Yes | The host address of the FTP server. |
port | String | 22 | Yes | The port number. |
baseDir | String | /root/ | No | The base path on the server. |
securityProtocol | String | passwordAuth | No | The authentication type. Valid values: passwordAuth, authTypeSshKey. Required when protocol is set to sftp. |
username | String | xxxxx | Yes | The username. |
password | String | xxxxx | No | The password. Required when protocol is set to ftp or ftps. Also required when protocol is set to sftp and securityProtocol is set to passwordAuth. |
sshKeyFile | String | 1 | No | The ID of the SSH key file used for authentication. Required when securityProtocol is set to authTypeSshKey. |
Configuration examples
Connection string mode
{
"host": "127.0.0.1",
"port": "5432",
"protocol": "sftp",
"securityProtocol": "passwordAuth",
"username": "xxxxx",
"password": "xxxxx",
"envType": "Dev"
}Is this page helpful?