# IRPCVault.GetVault

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/GetVault/

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

Gets the GUID, display name and other basic data of the session's vault.

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

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

## Remarks

Requires a vault session. `tooltip`, `icon` and `dns_names` are often empty. The response
carries the metadata structure version in the `mfiles-metadata-version-bin` trailer.

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

## Request: GetVaultRequest

A structure that specifies get vault request.

No fields.

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

## Response: GetVaultResponse

A structure that specifies get vault response.

> 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` | [`VaultBasic`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.VaultBasic/index.md) | The vault the session is logged in to. |
| `vault.guid` | `string` | The vault GUID, in braces and upper case. Use it as `LoginData.vault_guid`. |
| `vault.display_name` | `string` | The vault name shown to users. |
| `vault.tooltip` | `string` | Optional description. Often empty. |
| `vault.icon` | `bytes` | The vault icon in .ico format, or empty. |
| `vault.dns_names` | [`StringArray`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StringArray/index.md) | Host names configured for the vault, if any. |
| `vault.dns_names.value[]` | repeated `string` | String values. |

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

## Related methods

- [GetVaultServerAttachments](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVault/GetVaultServerAttachments/index.md): Gets the servers this vault is attached to.
