API Stability |
Short-Term
|
The updateLocalClusterConnection() GraphQL mutation is used to update a cluster connection to a local view.
Syntax
Below is the syntax for the updateLocalClusterConnection() mutation field:
graphql
updateLocalClusterConnection(
input: UpdateLocalClusterConnectionInput!
): LocalClusterConnection!
Below is an example of how this mutation field might be used:
graphql
mutation {
updateLocalClusterConnection( input:
{ multiClusterViewName: "my-gang",
connectionId: "abc123",
queryPrefix: "the_gang"
}
)
{ clusterId }
}
json
{
"data": {
"updateLocalClusterConnection": {
"clusterId": "def456"
}
}
}
Given Datatypes
For UpdateLocalClusterConnectionInput, there are a few parameters. Below is a list of them along with a description of each:
Table: UpdateLocalClusterConnectionInput
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 23, 2024 | |||||
connectionId | string | yes | The unique identifier of the connection to update. | ||
multiClusterViewName | string | yes | The name or unique identifier of the multi-cluster view that has the connection. | ||
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 . | ||
targetViewName | string | The name or unique identifier of the local view with which to connect. |
Returned Datatypes
For LocalClusterConnection, there are several parameters. Below is a list of them along with a description of each:
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 . |