API Stability Long-Term

The clusterUnregisterNode() GraphQL mutation may be used to unregister a node from a cluster.

For information on clusters, see the Cluster Management documentation page. You may also want to look at the LogScale Logical Architecture page in the Training section.

Syntax

Below is the syntax for the clusterUnregisterNode() mutation field:

graphql
clusterUnregisterNode(
      force: boolean!
      nodeID: integer!
   ): UnregisterNodeMutation!

The force is given with a value of true, along with nodeID and its unique identifier to force the removal of a node.

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  clusterUnregisterNode(
         nodeID: 2,
         force: false ) 
  { cluster { nodes { id, name } } }
}
Example Responses
Show:
json
{
  "data": {
    "clusterUnregisterNode": {
      "cluster": {
        "nodes": [
          {
            "id": 1,
            "name": "humio-cluster-node1:8080"
          }
        ]
      }
    }
  }
}

Returned Datatypes

The returned datatype UnregisterNodeMutation has one parameter and several sub-parameters. Click on the link below to the sub-parameters:

Table: UnregisterNodeMutation

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 4, 2024
clusterClusteryes Long-TermThe node to unregister from the cluster. See Cluster.