# AttachVaultOptions

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.AttachVaultOptions/

Options used when attaching, restoring, or copying a vault.

- **Full name:** `MFiles.AttachVaultOptions`
- **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-disable"></a>`disable` | [`ExternalConnectionOptions`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalConnectionOptions/index.md) | 1 | Which vault's external data connection points must be put disabled? |
| <a id="f-update_attachment_guid"></a>`update_attachment_guid` | `bool` | 2 | Specify true if the attachment GUID should be updated. Usually, it is desirable to update the attachment GUID each time the vault is re-attached. |
| <a id="f-fail_attach_if_bring_online_fails"></a>`fail_attach_if_bring_online_fails` | `bool` | 3 | A flag that controls if attaching the vault must fail if its online operations do not start successfully. Typically this is false meaning that starting online operations can fail although attaching the vault succeeds. |
| <a id="f-enforce_file_data_encryption"></a>`enforce_file_data_encryption` | `bool` | 4 | A flag that controls if file data encryption should be turned on in the vault when it is attached. |
| <a id="f-disable_local_indexes"></a>`disable_local_indexes` | `bool` | 5 | A flag that controls if the local indexes such as dtSearch are disabled when the vault is attached. |
| <a id="f-allow_only_vault_temp_path_for_content_replication"></a>`allow_only_vault_temp_path_for_content_replication` | `bool` | 6 | If true the temporary processing location of cloud replication jobs are cleared and other replication jobs are disabled. |
| <a id="f-ignore_vault_external_data_connection_points"></a>`ignore_vault_external_data_connection_points` | `bool` | 7 | If true vault's external data connection points are ignored when vault is already in msm cluster. |

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

## Used by methods

- [IRPCVaultsAdmin.AttachExistingVault](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/AttachExistingVault/index.md): Attaches an existing vault (metadata database and file data files) to the server.
- [IRPCVaultsAdmin.AttachVaultToOneDbTest](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/AttachVaultToOneDbTest/index.md): Checks whether existing vault files can be attached on a server that has joined a subscription, without attaching them.

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

## Used in fields

- [`CopyVaultJob.attach_vault_options`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.CopyVaultJob/index.md#f-attach_vault_options): Options for controlling the attaching of the vault.
- [`RestoreJob.vault_attach_options`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.RestoreJob/index.md#f-vault_attach_options): Options for controlling the attaching of the vault.
- [`AttachVaultToOneDbTestRequest.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/AttachVaultToOneDbTest/index.md#request): Attach options, as for AttachExistingVault.
- [`AttachExistingVaultRequest.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/AttachExistingVault/index.md#request): Options for attaching, such as which external connections to disable and whether to update the attachment GUID.
