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:
createLocalClusterConnection(
input: CreateLocalClusterConnectionInput!
): LocalClusterConnection!
Below is an example of how this mutation field might be used:
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
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 for which to add the connection. | ||
queryPrefix | string | yes | Filter query that restricts the data visible through this connection. | ||
tags | [ClusterConnectionInputTag ] | yes | Additional tags that can be used to filter queries. See ClusterConnectionInputTag . | ||
targetViewName | string | yes | 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
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 26, 2025 | |||||
clusterId | string | yes | Short-Term | The cluster identity of the connection. | |
id | string | yes | Short-Term | The unique identifier of the connection. | |
queryPrefix | string | yes | Short-Term | The cluster connection query prefix. | |
tags | ClusterConnectionTag | yes | Short-Term | The cluster connection tags. See ClusterConnectionTag . | |
targetViewId | string | yes | Short-Term | The unique identifier of the local view with which to connect. | |
targetViewName | RepoOrViewName | yes | Short-Term | The name of the local view with which to connect. RepoOrViewName is a scalar. | |
targetViewType | LocalTargetType | yes | Short-Term | The type of target view. See LocalTargetType . |