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/api \
-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/set method as defined in RFC 8620, Section 5.3.

Supports create, update, and destroy operations in a single call.

This operation requires the sysClusterNodeCreate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:ClusterNode/set",
{
"create": {
"new1": {
"hostname": "Example",
"lastRenewal": "2026-01-01T00:00:00Z",
"status": "active"
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This operation requires the sysClusterNodeUpdate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:ClusterNode/set",
{
"update": {
"id1": {
"hostname": "updated value"
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This operation requires the sysClusterNodeDestroy permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:ClusterNode/set",
{
"destroy": [
"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/api \
-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 create ClusterNode \
--field hostname=Example \
--field lastRenewal=2026-01-01T00:00:00Z \
--field status=active
Terminal window
stalwart-cli query ClusterNode
Terminal window
stalwart-cli update ClusterNode id1 --field hostname='updated value'
Terminal window
stalwart-cli delete ClusterNode --ids id1
ValueLabel
activeActive
staleStale
inactiveInactive