1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/FTP/Common-methods/Get-connection-settings.mdx

43 lines
1.4 KiB
Plaintext
Raw Normal View History

2025-07-17 22:02:56 +03:00
---
sidebar_position: 5
description: Get connection settings and other functions to work with FTP in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, FTP]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get connection settings
Creates a structure of FTP connection settings
`Function GetConnectionSettings(Val Domain, Val Port = 21, Val Login = Undefined, Val Password = Undefined, Val Passive = True, Val ReadTimeout = 120, Val WriteTimeout = 120) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Domain | --host | String | ✔ | Server domain |
| Port | --port | Number | ✖ | Server port |
| Login | --login | String, Undefined | ✖ | Username for authorization, if required |
| Password | --pass | String, Undefined | ✖ | User password for authorization, if required |
| Passive | --passive | Boolean | ✖ | Passive connection mode |
| ReadTimeout | --rtout | Number | ✖ | Read timeout |
| WriteTimeout | --wtout | Number | ✖ | Write timeout |
Returns: Structure Of KeyAndValue - Connection settings structure
<br/>
```bsl title="1C:Enterprise/OneScript code example"
```