createRemoteClusterConnection()

API Stability Short-Term

The createRemoteClusterConnection() GraphQL mutation field is used to create a cluster connection to a remote view. The MultiClusterSearch needs to be enabled to use it. This is a preview and subject to change.

Syntax

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

graphql
createRemoteClusterConnection(
       input: CreateRemoteClusterConnectionInput!
    ): RemoteClusterConnection!

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

Show:
graphql
mutation {
  createRemoteClusterConnection(input:
       { multiClusterViewName: "my-cluster-view",
        publicUrl: "https://cluster.company.com",
        token: "1234abc"
      } )
  { id }
}

Given Datatypes

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

Table: CreateRemoteClusterConnectionInput

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 to add.
publicUrlstringyes  The public URL of the remote cluster.
queryPrefixstring   Filter query that restricts the data visible through this connection.
tags[ClusterConnectionInputTag]yes  Additional tags that can be used to filter queries. See ClusterConnectionInputTag.
tokenstringyes  The access token for connecting to the remote view.

Returned Datatypes

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

Table: RemoteClusterConnection

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 17, 2025
clusterIdstringyes Short-TermCluster identity of the connection.
idstringyes Short-TermThe unique identifier of the connection.
publicUrlstringyes Short-TermPublic URL of the remote cluster with which to connect.
queryPrefixstringyes Short-TermThe cluster connection query prefix.
tags[ClusterConnectionTag]yes Short-TermCluster connection tags. See ClusterConnectionTag.