Get-ZrSiteStatus
Shows a store's configured WAN site-replication state: its site id, role, mode, epoch, peers, and whether the change feed is enabled.
Syntax
Get-ZrSiteStatus
[-Store] <string>
[-Managers <string[]>] [-Port <int>] [-Token <string>] [-TimeoutSec <int>]
Description
Get-ZrSiteStatus reads the site configuration each node of the named store carries and emits a StoreSiteStatus object with the site id, role (Active/Passive), mode (ActivePassive/ActiveActive), epoch, configured peers, and whether the change feed is enabled.
This reports configured state. Runtime, both-direction replication lag federated over the link is a separate live surface and is not part of this output. The cmdlet queries each resolved manager; it needs an active workspace or an explicit -Managers list.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
-Store | string | Yes | Name of the store whose site state to report. Position 0. |
-Managers | string[] | No | Management Service endpoints (host, host:port, or URL) to target. When omitted, the active workspace's managers are used. |
-Port | int | No | Management Service port for bare-host managers. Default 7801. |
-Token | string | No | Admin bearer token for authenticated control-plane calls. |
-TimeoutSec | int | No | Per-request timeout in seconds. Default 30. |
Examples
Show the configured site state for the orders store.
Get-ZrSiteStatus -Store orders