# VaultConnectionInfo

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.VaultConnectionInfo/

Struct for info needed to connect to a vault.

- **Full name:** `MFiles.VaultConnectionInfo`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-connection_mode"></a>`connection_mode` | [`MFilesAPIMode`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MFilesAPIMode/index.md) | 1 | The connection mode of M-Files API. Values: `MFILES_APIMODE_NORMAL` (0), `MFILES_APIMODE_INTERNAL_SERVER_ACCESS` (1), `MFILES_APIMODE_INTERNAL_SERVER_ACCESS_WITH_VAULT_MANAGEMENT` (2). |
| <a id="f-rpc_binding_string"></a>`rpc_binding_string` | `string` | 2 | Binding string to the server. |
| <a id="f-minimum_rpc_authentication_level"></a>`minimum_rpc_authentication_level` | `uint32` | 3 | Ignored if connectionsecuritymode is specified. RPC_C_AUTHN_LEVEL_NONE or RPC_C_AUTHN_LEVEL_PKT_PRIVACY. Specifies the minimum authentication level to use if the protocol sequence is normal RPC, such as ncacn_ip_tcp. Ignored for other protocol sequences. |
| <a id="f-server_version"></a>`server_version` | `string` | 4 | Server version string (e.g. "10.0.3757" or "10.0.3757.0"). |
| <a id="f-client_computer_name"></a>`client_computer_name` | `string` | 5 | The local computer name override used in the session. |
| <a id="f-vault_guid"></a>`vault_guid` | `string` | 6 | The GUID of the vault. |
| <a id="f-vault_display_name"></a>`vault_display_name` | `string` | 7 | The name of the vault for display purposes. |
| <a id="f-locale_for_sorting"></a>`locale_for_sorting` | `uint32` | 8 | Locale used for sorting. |
| <a id="f-session_id"></a>`session_id` | `bytes` | 9 | The session identifier. |
| <a id="f-session_info"></a>`session_info` | [`SessionInfoServer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SessionInfoServer/index.md) | 10 | General session information. |
| <a id="f-attachment_guid"></a>`attachment_guid` | `string` | 11 | The current attachment GUID of the vault. |
| <a id="f-enable_keep_alive"></a>`enable_keep_alive` | `bool` | 12 | True to allow the keep-alive thread to run. |
| <a id="f-server_vault_capabilities"></a>`server_vault_capabilities` | [`ServerVaultCapabilities`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ServerVaultCapabilities/index.md) | 13 | Capabilities of M-Files Server and the connected document vault. |
| <a id="f-client_capabilities"></a>`client_capabilities` | [`ClientCapabilities`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ClientCapabilities/index.md) | 14 | Capabilities of M-Files Client that were reported for the server when the connection (session) was established. |
| <a id="f-optional_grpc_cookies"></a>`optional_grpc_cookies` | `string` | 15 | Optional cookie data for gRPC connections. May contain multiple "<cookie_name>=<cookie_value>" cookies separated by newline character. |
| <a id="f-server_data"></a>`server_data` | [`ServerData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ServerData/index.md) | 16 | Server data, including the product serial number and deployment type. Used to populate serial number and deployment type on SessionInfo. |
| <a id="f-connection_security_mode"></a>`connection_security_mode` | [`ConnectionSecurityMode`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ConnectionSecurityMode/index.md) | 17 | Connection security mode. Overrides dwMinimumAuthenticationLevelIfNormalRPC if specified. Values: `CONNECTION_SECURITY_MODE_UNSPECIFIED` (0), `CONNECTION_SECURITY_MODE_NONE` (1), `CONNECTION_SECURITY_MODE_ENCRYPTED` (2), `CONNECTION_SECURITY_MODE_ENCRYPTED_IF_BUILTIN_KEY_AVAILABLE` (3). |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCLogin.GetVaultConnectionInfo](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetVaultConnectionInfo/index.md): Gets the full connection information of the current vault session, in the form the M-Files COM API uses.

<a id="used-in-fields"></a>

## Used in fields

- [`GetVaultConnectionInfoResponse.connection_info`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/GetVaultConnectionInfo/index.md#response): The vault connection information of the user's session.
