FTP

Updated at:

Defines the connection properties for an FTP data source in DataWorks.

  • Data source type: ftp

  • Supported configuration mode: Connection string mode (UrlMode)

Property definition

Connection string mode

ParameterTypeExampleRequiredDescription
protocolStringftpYesThe transfer protocol. Valid values: ftp, sftp, ftps.
hostString10.0.0.1YesThe host address of the FTP server.
portString22YesThe port number.
baseDirString/root/NoThe base path on the server.
securityProtocolStringpasswordAuthNoThe authentication type. Valid values: passwordAuth, authTypeSshKey. Required when protocol is set to sftp.
usernameStringxxxxxYesThe username.
passwordStringxxxxxNoThe password. Required when protocol is set to ftp or ftps. Also required when protocol is set to sftp and securityProtocol is set to passwordAuth.
sshKeyFileString1NoThe 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"
}