published on Friday, Oct 16, 2026 by Pulumi
published on Friday, Oct 16, 2026 by Pulumi
Warning: Switchover is a preview feature. Preview features are introduced to gather customer feedback and may change based on that feedback. They are intended for evaluation and non-production use only, and are not covered by Confluent SLAs. Preview features may be discontinued at any time.
confluentcloud.getSwitchoverPairs lists every switchover pair in an environment. Use it to discover pairs without knowing their IDs — for example, to find the pair for a given cluster, or to see which pairs are currently failed over, from a configuration that did not create them.
Using getSwitchoverPairs
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSwitchoverPairs(args: GetSwitchoverPairsArgs, opts?: InvokeOptions): Promise<GetSwitchoverPairsResult>
function getSwitchoverPairsOutput(args: GetSwitchoverPairsOutputArgs, opts?: InvokeOutputOptions): Output<GetSwitchoverPairsResult>def get_switchover_pairs(environment_crn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSwitchoverPairsResult
def get_switchover_pairs_output(environment_crn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetSwitchoverPairsResult]func GetSwitchoverPairs(ctx *Context, args *GetSwitchoverPairsArgs, opts ...InvokeOption) (*GetSwitchoverPairsResult, error)
func GetSwitchoverPairsOutput(ctx *Context, args *GetSwitchoverPairsOutputArgs, opts ...InvokeOption) GetSwitchoverPairsResultOutput> Note: This function is named GetSwitchoverPairs in the Go SDK.
public static class GetSwitchoverPairs
{
public static Task<GetSwitchoverPairsResult> InvokeAsync(GetSwitchoverPairsArgs args, InvokeOptions? opts = null)
public static Output<GetSwitchoverPairsResult> Invoke(GetSwitchoverPairsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetSwitchoverPairsResult> Invoke(GetSwitchoverPairsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetSwitchoverPairsResult> getSwitchoverPairs(GetSwitchoverPairsArgs args, InvokeOptions options)
public static Output<GetSwitchoverPairsResult> getSwitchoverPairs(GetSwitchoverPairsArgs args, InvokeOptions options)
public static Output<GetSwitchoverPairsResult> getSwitchoverPairs(GetSwitchoverPairsArgs args, InvokeOutputOptions options)
fn::invoke:
function: confluentcloud:index/getSwitchoverPairs:getSwitchoverPairs
arguments:
# arguments dictionarydata "confluentcloud_get_switchover_pairs" "name" {
# arguments
}The following arguments are supported:
- Environment
Crn string - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123.
- Environment
Crn string - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123.
- environment_
crn string - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123.
- environment
Crn String - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123.
- environment
Crn string - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123.
- environment_
crn str - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123.
- environment
Crn String - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123.
getSwitchoverPairs Result
The following output properties are available:
- Environment
Crn string - (Required String) The CRN of the environment that owns the pair.
- Id string
- The provider-assigned unique ID for this managed resource.
- Switchover
Pairs List<Pulumi.Confluent Cloud. Outputs. Get Switchover Pairs Switchover Pair> - (Required List of Object) The switchover pairs in the environment. Each object exports the same attributes as the
confluentcloud.SwitchoverPairdata source:
- Environment
Crn string - (Required String) The CRN of the environment that owns the pair.
- Id string
- The provider-assigned unique ID for this managed resource.
- Switchover
Pairs []GetSwitchover Pairs Switchover Pair - (Required List of Object) The switchover pairs in the environment. Each object exports the same attributes as the
confluentcloud.SwitchoverPairdata source:
- environment_
crn string - (Required String) The CRN of the environment that owns the pair.
- id string
- The provider-assigned unique ID for this managed resource.
- switchover_
pairs list(object) - (Required List of Object) The switchover pairs in the environment. Each object exports the same attributes as the
confluentcloud.SwitchoverPairdata source:
- environment
Crn String - (Required String) The CRN of the environment that owns the pair.
- id String
- The provider-assigned unique ID for this managed resource.
- switchover
Pairs List<GetSwitchover Pairs Switchover Pair> - (Required List of Object) The switchover pairs in the environment. Each object exports the same attributes as the
confluentcloud.SwitchoverPairdata source:
- environment
Crn string - (Required String) The CRN of the environment that owns the pair.
- id string
- The provider-assigned unique ID for this managed resource.
- switchover
Pairs GetSwitchover Pairs Switchover Pair[] - (Required List of Object) The switchover pairs in the environment. Each object exports the same attributes as the
confluentcloud.SwitchoverPairdata source:
- environment_
crn str - (Required String) The CRN of the environment that owns the pair.
- id str
- The provider-assigned unique ID for this managed resource.
- switchover_
pairs Sequence[GetSwitchover Pairs Switchover Pair] - (Required List of Object) The switchover pairs in the environment. Each object exports the same attributes as the
confluentcloud.SwitchoverPairdata source:
- environment
Crn String - (Required String) The CRN of the environment that owns the pair.
- id String
- The provider-assigned unique ID for this managed resource.
- switchover
Pairs List<Property Map> - (Required List of Object) The switchover pairs in the environment. Each object exports the same attributes as the
confluentcloud.SwitchoverPairdata source:
Supporting Types
GetSwitchoverPairsSwitchoverPair
- Active
Member string - (Required String) The name of the member that is currently active.
- Display
Name string - (Required String) A human-readable name for the switchover pair.
- Environment
Crn string - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - Failover
Type string - (Required String) The failover semantics most recently applied (
PLANNED,UNPLANNED, orRESTORE); empty until a failover has been triggered. - First
Active string - (Required String) The name of the member that was active when the pair was first created. Differs from
activeMemberwhile the pair is failed over. - Id string
- (Required String) The ID of the switchover pair, for example,
sw-abc123. - Members
List<Pulumi.
Confluent Cloud. Inputs. Get Switchover Pairs Switchover Pair Member> - (Required List of Object) The two clusters participating in the pair. Each member exports
name,memberCrn,cloud, andregion. - Phase string
- (Required String) The lifecycle phase of the switchover pair, for example,
READY_TO_FAILOVER.
- Active
Member string - (Required String) The name of the member that is currently active.
- Display
Name string - (Required String) A human-readable name for the switchover pair.
- Environment
Crn string - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - Failover
Type string - (Required String) The failover semantics most recently applied (
PLANNED,UNPLANNED, orRESTORE); empty until a failover has been triggered. - First
Active string - (Required String) The name of the member that was active when the pair was first created. Differs from
activeMemberwhile the pair is failed over. - Id string
- (Required String) The ID of the switchover pair, for example,
sw-abc123. - Members
[]Get
Switchover Pairs Switchover Pair Member - (Required List of Object) The two clusters participating in the pair. Each member exports
name,memberCrn,cloud, andregion. - Phase string
- (Required String) The lifecycle phase of the switchover pair, for example,
READY_TO_FAILOVER.
- active_
member string - (Required String) The name of the member that is currently active.
- display_
name string - (Required String) A human-readable name for the switchover pair.
- environment_
crn string - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - failover_
type string - (Required String) The failover semantics most recently applied (
PLANNED,UNPLANNED, orRESTORE); empty until a failover has been triggered. - first_
active string - (Required String) The name of the member that was active when the pair was first created. Differs from
activeMemberwhile the pair is failed over. - id string
- (Required String) The ID of the switchover pair, for example,
sw-abc123. - members list(object)
- (Required List of Object) The two clusters participating in the pair. Each member exports
name,memberCrn,cloud, andregion. - phase string
- (Required String) The lifecycle phase of the switchover pair, for example,
READY_TO_FAILOVER.
- active
Member String - (Required String) The name of the member that is currently active.
- display
Name String - (Required String) A human-readable name for the switchover pair.
- environment
Crn String - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - failover
Type String - (Required String) The failover semantics most recently applied (
PLANNED,UNPLANNED, orRESTORE); empty until a failover has been triggered. - first
Active String - (Required String) The name of the member that was active when the pair was first created. Differs from
activeMemberwhile the pair is failed over. - id String
- (Required String) The ID of the switchover pair, for example,
sw-abc123. - members
List<Get
Switchover Pairs Switchover Pair Member> - (Required List of Object) The two clusters participating in the pair. Each member exports
name,memberCrn,cloud, andregion. - phase String
- (Required String) The lifecycle phase of the switchover pair, for example,
READY_TO_FAILOVER.
- active
Member string - (Required String) The name of the member that is currently active.
- display
Name string - (Required String) A human-readable name for the switchover pair.
- environment
Crn string - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - failover
Type string - (Required String) The failover semantics most recently applied (
PLANNED,UNPLANNED, orRESTORE); empty until a failover has been triggered. - first
Active string - (Required String) The name of the member that was active when the pair was first created. Differs from
activeMemberwhile the pair is failed over. - id string
- (Required String) The ID of the switchover pair, for example,
sw-abc123. - members
Get
Switchover Pairs Switchover Pair Member[] - (Required List of Object) The two clusters participating in the pair. Each member exports
name,memberCrn,cloud, andregion. - phase string
- (Required String) The lifecycle phase of the switchover pair, for example,
READY_TO_FAILOVER.
- active_
member str - (Required String) The name of the member that is currently active.
- display_
name str - (Required String) A human-readable name for the switchover pair.
- environment_
crn str - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - failover_
type str - (Required String) The failover semantics most recently applied (
PLANNED,UNPLANNED, orRESTORE); empty until a failover has been triggered. - first_
active str - (Required String) The name of the member that was active when the pair was first created. Differs from
activeMemberwhile the pair is failed over. - id str
- (Required String) The ID of the switchover pair, for example,
sw-abc123. - members
Sequence[Get
Switchover Pairs Switchover Pair Member] - (Required List of Object) The two clusters participating in the pair. Each member exports
name,memberCrn,cloud, andregion. - phase str
- (Required String) The lifecycle phase of the switchover pair, for example,
READY_TO_FAILOVER.
- active
Member String - (Required String) The name of the member that is currently active.
- display
Name String - (Required String) A human-readable name for the switchover pair.
- environment
Crn String - The CRN of the environment whose switchover pairs to list, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - failover
Type String - (Required String) The failover semantics most recently applied (
PLANNED,UNPLANNED, orRESTORE); empty until a failover has been triggered. - first
Active String - (Required String) The name of the member that was active when the pair was first created. Differs from
activeMemberwhile the pair is failed over. - id String
- (Required String) The ID of the switchover pair, for example,
sw-abc123. - members List<Property Map>
- (Required List of Object) The two clusters participating in the pair. Each member exports
name,memberCrn,cloud, andregion. - phase String
- (Required String) The lifecycle phase of the switchover pair, for example,
READY_TO_FAILOVER.
GetSwitchoverPairsSwitchoverPairMember
- cloud string
- member_
crn string - name string
- region string
- cloud str
- member_
crn str - name str
- region str
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluentTerraform Provider.
published on Friday, Oct 16, 2026 by Pulumi