IRPCVaults.GetVaults
Vault API / core read session idempotent
Lists the vaults on the server that the session's user can see.
| Service | Vaults on a server MFiles.IRPCVaults |
|---|---|
| gRPC method | /MFiles.IRPCVaults/GetVaults |
| HTTP (mf-http-grpc) | POST /grpc/v1/get-vaults |
| Request | GetVaultsRequest |
| Response | GetVaultsResponse |
| 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 | no |
| Streaming | none (unary) |
Remarks
Requires a session, either server-level or vault-level; without one the call fails with
UNAUTHENTICATED.
Which vaults are returned:
- A user who can manage vaults on the server sees every vault, unless
exclude_vaults_user_cannot_accessis true. - Any other user sees only vaults where the login account has a user account. With
exclude_vaults_user_cannot_accessthe user account must also be allowed to log in. - A user whose login account lives in one vault (vault login accounts) sees only that vault.
- Offline vaults are left out unless
include_offline_vaultsis true.
vaults and online_states are parallel arrays: online_states[i] is the state of vaults[i].
Request: GetVaultsRequest
A structure that specifies get vaults request.
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 |
|---|---|---|
include_offline_vaults | bool | True to also return vaults that are offline. Default false: only online vaults. |
exclude_vaults_user_cannot_access | bool | True to return only vaults the user can log in to. Without it a non-administrator also sees vaults where the user account exists but cannot log in, and a user who manages vaults sees all vaults. |
Response: GetVaultsResponse
A structure that specifies get vaults 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 |
|---|---|---|
vaults[] | repeated VaultBasic | The visible vaults. guid is the value to pass in LoginData.vault_guid. |
vaults[].guid | string | The vault GUID, in braces and upper case. Use it as LoginData.vault_guid. |
vaults[].display_name | string | The vault name shown to users. |
vaults[].tooltip | string | Optional description. Often empty. |
vaults[].icon | bytes | The vault icon in .ico format, or empty. |
vaults[].dns_names | StringArray | Host names configured for the vault, if any. |
vaults[].dns_names.value[] | repeated string | String values. |
online_states[] | repeated bool | True if the vault at the same index in vaults is online. |