Cluster API
Actions in the cluster namespace of the Nexigon Hub API.
cluster_GetDetails
POST /api/v1/actions/invoke/cluster_GetDetails Get information about the cluster.
Request GetClusterDetailsAction
Fields (JSON object)
includeTerminated(frominclude_terminated) optionalInclude terminated nodes in the response.
boolean
Response GetClusterDetailsOutput
Fields (JSON object)
nodesrequiredNodes of the cluster.
array<ClusterNode>
Items
ClusterNode
Fields (JSON object)
nodeId(fromnode_id) requiredID of the cluster node.
ClusterNodeId
stringnameoptionalName of the cluster node.
string
statusrequiredStatus of the cluster node.
ClusterNodeStatus
Cases externally
ActiveNode is active and running.
Value: "Active"TerminatedNode has been terminated.
Value: "Terminated"
joinedAt(fromjoined_at) requiredTimestamp when the node joined the cluster.
Timestamp
stringuptimeSecs(fromuptime_secs) requiredUptime of the node in seconds.
integer
lastHeartbeat(fromlast_heartbeat) requiredTimestamp when the node last reported a heartbeat.
Timestamp
stringterminatedAt(fromterminated_at) optionalTimestamp when the node was terminated.
Timestamp
stringterminationReason(fromtermination_reason) optionalReason why the node was terminated.
ClusterNodeTerminationReason
Cases externally
UnknownUnknown reason (fallback).
Value: "Unknown"HeartbeatTimeoutNode was terminated due to heartbeat timeout.
Value: "HeartbeatTimeout"ShutdownNode was terminated due to graceful shutdown.
Value: "Shutdown"
cluster_RegisterNode
POST /api/v1/actions/invoke/cluster_RegisterNode Register a new cluster node.
Request RegisterClusterNodeAction
Fields (JSON object)
nameoptionalName of the cluster node.
string
Response RegisterClusterNodeOutput
Fields (JSON object)
nodeId(fromnode_id) requiredID of the cluster node.
ClusterNodeId string
cluster_ReportNodeHeartbeat
POST /api/v1/actions/invoke/cluster_ReportNodeHeartbeat Report the heartbeat of a cluster node.
Request ReportClusterNodeHeartbeatAction
No fields.
Response Empty
No fields.
cluster_CleanupInactiveNodes
POST /api/v1/actions/invoke/cluster_CleanupInactiveNodes Cleanup inactive cluster nodes.
Request CleanupInactiveClusterNodesAction
No fields.
Response Empty
No fields.