The Secure FTP (SFTP) File Operations service is used to perform simple SFTP file operations.
To configure a SFTP File Operations service:
For a complete description of the configuration parameters that are available for the SFTP File Operations service, see SFTP File Operations Service Parameters.
For a complete description of the edges that are returned by the SFTP File Operations service, see SFTP File Operations Service Edges.
The following table lists and describes parameters for the SFTP File Operations service.
Parameter |
Description |
---|---|
Operation |
Operation to perform on the file hosted by the SFTP Server. Operations supported by this service are as follows:
|
Operation (continued) |
|
File (from) |
Name of the source file. This field may be a relative or absolute file paths, a SREG or XPath expression. This is a required field. |
File (to) |
The name of the destination file. Wild cards are accepted. This is a required field except when operation is delete, size or exist. |
Host Name |
DNS name (or IP address) of the host SFTP server to connect to. This is a required field. |
User Name |
The name (or user ID) of the user to use to log onto the SFTP host with. This is a required field. |
Password |
Password for the user on the SFTP host. |
Remote Port |
Port number to connect to on the SFTP host site, blank for default port 22. |
Remote Size |
Name of the Special Register designated to hold size. This field is required when operation is size. |
Out Document |
Document returned by operation (bad input defaults to result). result. The results of the requested operation. In the case of copy, move, rename, delete, size, and exist, the status document containing the status of the function is returned. The functions prepend and append result in the file data being returned. This data will be the same as the data found in the file addressed by the File (to) parameter. |
The following table lists and describes the edges that are returned by the SFTP File Operations service.
Edge |
Description |
---|---|
success |
Operation completed successfully. |
fail_parse |
Failed to properly parse the input parameters of the service. |
fail_connect |
Failed to connect to SFTP host for any one of the following reasons:
|
fail_operation |
Invalid parms or other error. |
fail_notfound |
The file name in the File Name Tag parameter does not exist on the SFTP host. |
The From file test.txt is:
This is an SFTPServer test
The to file out6.txt is:
<parent><test1>Soumya</test1></parent>
The to file out6.txt content is modified as:
This is an SFTPServer test
Set the properties as shown in the following image.
This is an SFTPServer test
The From File test.txt is renamed to testmove.txt.
Set the properties as shown in the following image.
The From file /users/edasxr/testdir/out6.txt is:
this is a test
The to file /users/edasxr/testdir/testmove.txt is:
for sftpops agent
The to file testmove.txt content is modified as:
this is a test for sftpops agent
Set the properties as shown in the following image.
The From file /users/edasxr/testdir/out6.txt is:
this is a test
The to file /users/edasxr/testdir/testmove.txt is:
for sftpops agent
The to file testmove.txt content is modified as:
this is a test for sftpops agent
Set the properties as shown in the following image.
The From file /users/edasxr/testdir/out6.txt is deleted.
Set the properties as shown in the following image.
This is an SFTPServer test
The From File test.txt is renamed to testmove.txt.
Set the properties as shown in the following image.
Set the properties as shown in the following image.
iWay Software |