You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
Main build (Jenkins)
This commit is contained in:
22
docs/en/examples/SFTP/CloseConnection.txt
vendored
22
docs/en/examples/SFTP/CloseConnection.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/CreateConnection.txt
vendored
22
docs/en/examples/SFTP/CreateConnection.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/CreateNewDirectory.txt
vendored
22
docs/en/examples/SFTP/CreateNewDirectory.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/DeleteDirectory.txt
vendored
22
docs/en/examples/SFTP/DeleteDirectory.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/DeleteFile.txt
vendored
22
docs/en/examples/SFTP/DeleteFile.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/GetCurrentDirectory.txt
vendored
22
docs/en/examples/SFTP/GetCurrentDirectory.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/GetFileData.txt
vendored
22
docs/en/examples/SFTP/GetFileData.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/GetFileInformation.txt
vendored
22
docs/en/examples/SFTP/GetFileInformation.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
10
docs/en/examples/SFTP/GetProxySettings.txt
vendored
10
docs/en/examples/SFTP/GetProxySettings.txt
vendored
@@ -1,8 +1,8 @@
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
Result = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
Result = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
Login = "bayselonarrend";
|
||||
Result = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
22
docs/en/examples/SFTP/IsConnector.txt
vendored
22
docs/en/examples/SFTP/IsConnector.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/ListObjects.txt
vendored
22
docs/en/examples/SFTP/ListObjects.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/SaveFile.txt
vendored
22
docs/en/examples/SFTP/SaveFile.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/UpdatePath.txt
vendored
22
docs/en/examples/SFTP/UpdatePath.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
22
docs/en/examples/SFTP/UploadFile.txt
vendored
22
docs/en/examples/SFTP/UploadFile.txt
vendored
@@ -2,8 +2,8 @@
|
||||
|
||||
ImageDD = New BinaryData(Image);
|
||||
|
||||
Host = FunctionParameters["SSH_Host"];
|
||||
Port = FunctionParameters["SSH_Port"];
|
||||
Host = "172.33.0.13";
|
||||
Port = "2222";
|
||||
|
||||
UseProxy = True;
|
||||
ProxySettings = Undefined;
|
||||
@@ -11,14 +11,14 @@
|
||||
|
||||
If AuthorizationType = "By login and password" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Password = FunctionParameters["SSH_Password"];
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
|
||||
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
|
||||
|
||||
ElsIf AuthorizationType = "By key" Then
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
PrivateKey = "./ssh_key";
|
||||
PublicKey = "./ssh_key.pub";
|
||||
|
||||
@@ -26,19 +26,19 @@
|
||||
|
||||
Else
|
||||
|
||||
Login = FunctionParameters["SSH_User"];
|
||||
Login = "bayselonarrend";
|
||||
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
|
||||
|
||||
EndIf;
|
||||
|
||||
If UseProxy Then
|
||||
|
||||
ProxyType = FunctionParameters["Proxy_Type"]; // http, socks5, socks4
|
||||
ProxyType = "http"; // http, socks5, socks4
|
||||
|
||||
ProxyAddress = FunctionParameters["Proxy_IP"];
|
||||
ProxyPort = FunctionParameters["Proxy_Port"];
|
||||
ProxyLogin = FunctionParameters["Proxy_User"];
|
||||
ProxyPassword = FunctionParameters["Proxy_Password"];
|
||||
ProxyAddress = "127.0.0.1";
|
||||
ProxyPort = "8071";
|
||||
ProxyLogin = "proxyuser";
|
||||
ProxyPassword = "12we...";
|
||||
|
||||
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user