IRPCTest.TestVaultAvailability

View as Markdown

Vault API / standard write no session

Checks that a vault on this server is online and that its database and file data storage can be accessed. No session needed.

ServiceConnection and health checks MFiles.IRPCTest
gRPC method/MFiles.IRPCTest/TestVaultAvailability
HTTP (mf-http-grpc)POST /grpc/v1/test-vault-availability
RequestTestVaultAvailabilityRequest
ResponseTestVaultAvailabilityResponse
Book and levelVault API, standard
Kindwrite
SessionNot needed: the call can be made before logging in.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Needs no session; an mfiles-session-id-bin header, if sent, is ignored. The call succeeds with an empty response when the vault passes the checks.

When the vault is fully online, the server checks that the vault database and the vault's file data storage can be accessed. A failed check returns the error code of the failure, with any details replaced by ********.

When the vault is not fully online, or the server is shutting down, the result depends on check_online_status:

An unknown vault GUID fails with E_MFILES_UNKNOWN_VAULT ("The specified document vault does not exist.", with the detail Vault ID: <guid>) whatever check_online_status is. An empty string counts as the all-zero GUID and fails the same way; a malformed GUID fails with E_INVALIDARG ("The parameter is incorrect.").

For a load balancer probe, prefer CheckVaultHealthAnonymous, which is made for that purpose.

Request: TestVaultAvailabilityRequest

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

FieldTypeDescription
vaultstringThe vault GUID, with or without braces, in any case.
check_online_statusbooltrue to fail when the vault is not fully online; false to succeed without checks in that case.

Response: TestVaultAvailabilityResponse

No fields.