# IRPCVault.GetVaultServerAttachments

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Vault information](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVault/index.md)

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

Badges: `Vault API / core` `read` `session` `idempotent` `returns metadata structure version`

Gets the servers this vault is attached to.

- **Service:** [Vault information](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVault/index.md) `MFiles.IRPCVault`
- **gRPC method:** `/MFiles.IRPCVault/GetVaultServerAttachments`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-vault-server-attachments`
- **Request:** [`GetVaultServerAttachmentsRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVault/GetVaultServerAttachments/index.md#request)
- **Response:** [`GetVaultServerAttachmentsResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVault/GetVaultServerAttachments/index.md#response)
- **Book and level:** Vault API, core
- **Kind:** read
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** yes (in the mfiles-metadata-version-bin trailer)
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

Used by M-Files in multi-server deployments; applications rarely need it. Lists the servers the
vault is attached to; on a single server the list has one entry with `is_current` true.

<a id="request"></a>

## Request: GetVaultServerAttachmentsRequest

No fields.

<a id="response"></a>

## Response: GetVaultServerAttachmentsResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `vault_server_attachments[]` | repeated [`VaultServerAttachment`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.VaultServerAttachment/index.md) | Receives the vault server attachments. |
| `vault_server_attachments[].host_name` | `string` | The server host name. |
| `vault_server_attachments[].address` | `string` | The server host address. |
| `vault_server_attachments[].server_id` | `string` | The server ID. |
| `vault_server_attachments[].latest_timestamp` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | The latest timestamp this info was updated. |
| `vault_server_attachments[].is_current` | `bool` | True if this is the current vault server attachment. |

<a id="related"></a>

## Related methods

- [GetVault](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVault/GetVault/index.md): Gets the GUID, display name and other basic data of the session's vault.
