createLocalClusterConnection()

API Stability Short-Term

The createLocalClusterConnection() GraphQL mutation field is used to create a cluster connection to a local view. The feature, MultiClusterSearch has to be enabled. This is a preview and might be changed later.

Syntax

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

graphql
createLocalClusterConnection(
       input: CreateLocalClusterConnectionInput!
    ): LocalClusterConnection!

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

Show:
graphql
mutation {
  createLocalClusterConnection(input:
         {multiClusterViewName: "my-cluster",
          targetViewName: "humio",
        } )
  { id }
}

Given Datatypes

For CreateLocalClusterConnectionInput, there are a few parameters. Below is a list of them:

Table: CreateLocalClusterConnectionInput

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: Sep 17, 2024
multiClusterViewNamestringyes  The name or unique identifier of the multi-cluster view for which to add the connection.
queryPrefixstringyes  Filter query that restricts the data visible through this connection.
tags[ClusterConnectionInputTag]yes  Additional tags that can be used to filter queries. See ClusterConnectionInputTag.
targetViewNamestringyes  The name or unique identifier of the local view.

Returned Datatypes

As indicated by the syntax above, this mutation will return data using the datatype, LocalClusterConnection. Below is the parameter of that datatype:

Table: LocalClusterConnection

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: Mar 26, 2025
clusterIdstringyes Short-TermThe cluster identity of the connection.
idstringyes Short-TermThe unique identifier of the connection.
queryPrefixstringyes Short-TermThe cluster connection query prefix.
tagsClusterConnectionTagyes Short-TermThe cluster connection tags. See ClusterConnectionTag.
targetViewIdstringyes Short-TermThe unique identifier of the local view with which to connect.
targetViewNameRepoOrViewNameyes Short-TermThe name of the local view with which to connect. RepoOrViewName is a scalar.
targetViewTypeLocalTargetTypeyes Short-TermThe type of target view. See LocalTargetType.