Skip to main content

Get-DkvConnection

Synopsis​

Returns information about the current Clustron DKV client connection.


Syntax

Get-DkvConnection

Description

Get-DkvConnection retrieves the current connection context for the Clustron DKV client shell.

If a connection has been established using Connect-DkvStore, the cmdlet returns details such as:

  • store name
  • cluster endpoints
  • client identifier
  • connection timestamp

If no active connection exists, the command returns an object indicating that the client is not connected.

This command is useful for:

  • verifying connection status
  • debugging connection issues
  • scripting connection checks
  • confirming which store is currently active

Output

Returns an object with the following properties.

PropertyDescription
IsConnectedIndicates whether a connection is currently active
StoreNameName of the connected store
EndpointsCluster seed endpoints
ClientIdUnique identifier of the client instance
ConnectedAtUtcTimestamp when the connection was established
SuccessIndicates command execution success
ErrorError information if applicable

Example output:

IsConnected   : True
StoreName : TestStore
Endpoints : {127.0.0.1:7070, 127.0.0.1:7071}
ClientId : 2f4d1c1e-23c1-4c2e-a6a4-bff2e1e62a2f
ConnectedAtUtc: 2026-03-08T12:10:21Z
Success : True
Error :

Examples

Check connection status​

Get-DkvConnection

Example output when connected:

IsConnected : True
StoreName : TestStore

Check connection in a script​

if ((Get-DkvConnection).IsConnected) {
Write-Host "Connected to DKV store"
}

Notes

  • This command does not perform network operations.
  • It simply returns the current client context stored in the PowerShell session.
  • If no connection exists, the cmdlet still returns a valid object with IsConnected = false.