IRPCTest.TestConnectionToVault

View as Markdown

Vault API / standard write session idempotent

Checks that the session is a valid vault session, and does nothing else.

ServiceConnection and health checks MFiles.IRPCTest
gRPC method/MFiles.IRPCTest/TestConnectionToVault
HTTP (mf-http-grpc)POST /grpc/v1/test-connection-to-vault
RequestTestConnectionToVaultRequest
ResponseTestConnectionToVaultResponse
Book and levelVault API, standard
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Send the session in mfiles-session-id-bin. The call succeeds with an empty response while the session is valid. A missing, unknown or logged-out session fails with UNAUTHENTICATED. A server-level session (opened with the all-zero vault GUID) fails with E_MFILES_LOGIN_REQUIRED ("Login required.").

This is the cheapest way to find out whether a session is still usable before a batch of work, and to measure the round-trip time of authenticated vault calls. It does not reset the session's idle timer: keep the session open with KeepAlive.

Request: TestConnectionToVaultRequest

No fields.

Response: TestConnectionToVaultResponse

No fields.