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:
createRemoteClusterConnection(
input: CreateRemoteClusterConnectionInput!
): RemoteClusterConnection!
Below is an example of how this mutation field might be used:
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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
multiClusterViewName | string | yes | The name or unique identifier of the multi-cluster view to add. | ||
publicUrl | string | yes | The public URL of the remote cluster. | ||
queryPrefix | string | Filter query that restricts the data visible through this connection. | |||
tags | [ClusterConnectionInputTag ] | yes | Additional tags that can be used to filter queries. See ClusterConnectionInputTag . | ||
token | string | yes | 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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
clusterId | string | yes | Short-Term | Cluster identity of the connection. | |
id | string | yes | Short-Term | The unique identifier of the connection. | |
publicUrl | string | yes | Short-Term | Public URL of the remote cluster with which to connect. | |
queryPrefix | string | yes | Short-Term | The cluster connection query prefix. | |
tags | [ClusterConnectionTag ] | yes | Short-Term | Cluster connection tags. See ClusterConnectionTag . |