ClusterNode
Represents a node in the cluster.
This object can be configured from the WebUI under Management › Cluster
Fields
Section titled “Fields”nodeId
Section titled “nodeId”Type:
UnsignedInt· default:1Unique identifier for the node in the cluster
hostname
Section titled “hostname”Type:
String· requiredHostname of the node
lastRenewal
Section titled “lastRenewal”Type:
UTCDateTime· requiredTimestamp of the last lease renewal from this node, used to determine if the node is still active in the cluster
status
Section titled “status”Type:
ClusterNodeStatus· requiredCurrent status of the node in the cluster
JMAP API
Section titled “JMAP API”The ClusterNode object is available via the urn:stalwart:jmap capability.
x:ClusterNode/get
Section titled “x:ClusterNode/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
This method requires the sysClusterNodeGet permission.
curl -X POST https://mail.example.com/jmap/ \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:ClusterNode/get", { "ids": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:ClusterNode/query
Section titled “x:ClusterNode/query”This is a standard Foo/query method as defined in RFC 8620, Section 5.5.
This method requires the sysClusterNodeQuery permission.
curl -X POST https://mail.example.com/jmap/ \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:ClusterNode/query", { "filter": {} }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get ClusterNode id1stalwart-cli query ClusterNodeClusterNodeStatus
Section titled “ClusterNodeStatus”| Value | Label |
|---|---|
active | Active |
stale | Stale |
inactive | Inactive |