IBM ACE to SFTP Configuration at Run time though Policy.
Here in this blog, we will learn about IBM ACE to SFTP Configuration at Run time though Policy.
To parameterize the SFTP connection details and use policies to configure them at runtime,
To set up FTP, FTPS, or SFTP file transfer for a message flow, use an FTP Server policy.
In a message flow, you use a FileOutput node to write messages to files and a FileInput node to handle messages that are read from files. The connection information that the File nodes use to read from and write to remote servers can be managed at runtime by an FTP Server policy.
Set the Remote server and port property of the FileInput, FileOutput, or FileRead node to the policy name, in the format {policyProjectName}: policyName, in order to connect an FTP Server policy to a File node. This policy needs to be deployed before the related message flow is initiated.
Configuration:
You can either configure SFTP on the FTP Properties tab of the File node, or you can control them by using an FTP Server policy at run time, which has to be specified on the FTP tab in Server and Port.
- Create a message flow that includes File Nodes.
- Create FTP Server Policy in the toolkit and Configure SFTP details (hostname, port, destination directory, Security Identity, etc.)
- Configure Policy in file nodes in the FTP Tab in the Server and Port region.
- Syntax of policy configuration “{Policy_Project_Name}: Policy_Name”.
- Deploy policy before deploying applications which having reference to the policy.
Main Purpose of using Hostname in the Server and Port Property:
- Set Preferred DNS Server in Wi-Fi Properties as same as SFTP DNS.
- We transfer files by using Hostname in configurations, as in the above picture Currently we are using 212 IPs in the background.
- Now we are changing the SFTP IP in the Background for 22 and checking the connection.
- Now try to transfer files without changing the configuration of SFTP at the flow level or policy level.
- Place the files over the file input location and check whether the file was transferred or not at the destination location in SFTP.
- The main purpose of using Hostname in SFTP Configuration in the Server and Port instead of IP is, that whenever we change the IP of SFTP servers we have to update that IP in every Message Flow Configuration wherever we using that SFTP Configurations.
- So if we use Hostname instead of IP there is no need to change anything in the Configurations of SFTP after changing IP’s in the background.
- And if any changes are in Hostname or any other configurations in SFTP we can update the policy and redeploy in Servers without redeploying the flow whichever is referred to that policy, configuration changes directly take place at run time.