Connect Version 7 (Net)
Description
The action establishes a connection to an FTP server
Action icon
Parameters
Input parameters
Connection protocol - Type of connection protocol.
Host - The address of the FTP server on the network.
Port - Port of the FTP server.
Username - Login to connect to the server.
Password - Password to connect to the server.
Private Key File - File with the key to connect via SFTP.
Private Key Password - Password for connection via SFTP with a key.
Output parameters
As a result we get the connection context for working with FTP server.
Settings
Property | Description | Type | Example of filling in | Obligatory to fill in the field |
Parameters | ||||
Connection protocol | Connection protocol | String | Yes | |
Host | FTP server address | String | Yes | |
Port | Port for connection | Numeric | No | |
Username | Login to connect to the server | String | No | |
Password | Password to connect to the server | Password | No | |
Private Key File | A file with the key to connect via SFTP. The key must be in OpenSSH format. | FilePath | No | |
Private Key Password | Password for SFTP connection with a key | String | No | |
Results | ||||
Context | The unique session identifier that will be created as a result of the action. | FTP instance | FTP context |
Special conditions of use
None.
Example of use
Task
Connect to an FTP server, retrieve the contents of a folder and retrieve information on value = 1 from the retrieved collection.
Solution
Use the actions "Connect", "List folder", "Disconnect", "Get value by index".
Implementation
- Assemble a robot scheme consisting of the actions:
- Set the parameters for the "Connect" action.
- Set the parameters for the "List folder" action.
- Set the parameters for the "Disconnect" action.
- Set parameters for the "Get value by index" action.
- Click on the "Start" button in the upper panel.
Result
The software robot completed successfully. Information on the value with index =1 is obtained.