Skip to content

ClusterNode

Represents a node in the cluster.

This object can be configured from the WebUI under Management › Cluster

Type: UnsignedInt · default: 1

Unique identifier for the node in the cluster

Type: String · required

Hostname of the node

Type: UTCDateTime · required

Timestamp of the last lease renewal from this node, used to determine if the node is still active in the cluster

Type: ClusterNodeStatus · required

Current status of the node in the cluster

The ClusterNode object is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

This method requires the sysClusterNodeGet permission.

Terminal window
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"
]
}'

This is a standard Foo/query method as defined in RFC 8620, Section 5.5.

This method requires the sysClusterNodeQuery permission.

Terminal window
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.

Terminal window
stalwart-cli get ClusterNode id1
Terminal window
stalwart-cli query ClusterNode
ValueLabel
activeActive
staleStale
inactiveInactive