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.SwitchoverEndpoint describes a switchover endpoint data source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const example = confluentcloud.getSwitchoverEndpoint({
id: "se-abc123",
environmentCrn: "crn://confluent.cloud/organization=org-abc/environment=env-abc123",
});
export const switchoverEndpoint = example;
import pulumi
import pulumi_confluentcloud as confluentcloud
example = confluentcloud.get_switchover_endpoint(id="se-abc123",
environment_crn="crn://confluent.cloud/organization=org-abc/environment=env-abc123")
pulumi.export("switchoverEndpoint", example)
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := confluentcloud.GetSwitchoverEndpoint(ctx, &confluentcloud.LookupSwitchoverEndpointArgs{
Id: "se-abc123",
EnvironmentCrn: "crn://confluent.cloud/organization=org-abc/environment=env-abc123",
}, nil)
if err != nil {
return err
}
ctx.Export("switchoverEndpoint", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var example = ConfluentCloud.GetSwitchoverEndpoint.Invoke(new()
{
Id = "se-abc123",
EnvironmentCrn = "crn://confluent.cloud/organization=org-abc/environment=env-abc123",
});
return new Dictionary<string, object?>
{
["switchoverEndpoint"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetSwitchoverEndpointArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = ConfluentcloudFunctions.getSwitchoverEndpoint(GetSwitchoverEndpointArgs.builder()
.id("se-abc123")
.environmentCrn("crn://confluent.cloud/organization=org-abc/environment=env-abc123")
.build());
ctx.export("switchoverEndpoint", example);
}
}
variables:
example:
fn::invoke:
function: confluentcloud:getSwitchoverEndpoint
arguments:
id: se-abc123
environmentCrn: crn://confluent.cloud/organization=org-abc/environment=env-abc123
outputs:
switchoverEndpoint: ${example}
terraform {
required_providers {
confluentcloud = {
source = "pulumi/confluentcloud"
}
}
}
data "confluentcloud_switchover_endpoint" "example" {
id = "se-abc123"
environment_crn = "crn://confluent.cloud/organization=org-abc/environment=env-abc123"
}
output "switchoverEndpoint" {
value = data.confluentcloud_switchover_endpoint.example
}
Using getSwitchoverEndpoint
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 getSwitchoverEndpoint(args: GetSwitchoverEndpointArgs, opts?: InvokeOptions): Promise<GetSwitchoverEndpointResult>
function getSwitchoverEndpointOutput(args: GetSwitchoverEndpointOutputArgs, opts?: InvokeOutputOptions): Output<GetSwitchoverEndpointResult>def get_switchover_endpoint(environment_crn: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSwitchoverEndpointResult
def get_switchover_endpoint_output(environment_crn: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetSwitchoverEndpointResult]func LookupSwitchoverEndpoint(ctx *Context, args *LookupSwitchoverEndpointArgs, opts ...InvokeOption) (*LookupSwitchoverEndpointResult, error)
func LookupSwitchoverEndpointOutput(ctx *Context, args *LookupSwitchoverEndpointOutputArgs, opts ...InvokeOption) LookupSwitchoverEndpointResultOutput> Note: This function is named LookupSwitchoverEndpoint in the Go SDK.
public static class GetSwitchoverEndpoint
{
public static Task<GetSwitchoverEndpointResult> InvokeAsync(GetSwitchoverEndpointArgs args, InvokeOptions? opts = null)
public static Output<GetSwitchoverEndpointResult> Invoke(GetSwitchoverEndpointInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetSwitchoverEndpointResult> Invoke(GetSwitchoverEndpointInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetSwitchoverEndpointResult> getSwitchoverEndpoint(GetSwitchoverEndpointArgs args, InvokeOptions options)
public static Output<GetSwitchoverEndpointResult> getSwitchoverEndpoint(GetSwitchoverEndpointArgs args, InvokeOptions options)
public static Output<GetSwitchoverEndpointResult> getSwitchoverEndpoint(GetSwitchoverEndpointArgs args, InvokeOutputOptions options)
fn::invoke:
function: confluentcloud:index/getSwitchoverEndpoint:getSwitchoverEndpoint
arguments:
# arguments dictionarydata "confluentcloud_get_switchover_endpoint" "name" {
# arguments
}The following arguments are supported:
- Environment
Crn string - The CRN of the environment that owns this switchover endpoint, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - Id string
- The ID of the switchover endpoint, for example,
se-abc123.
- Environment
Crn string - The CRN of the environment that owns this switchover endpoint, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - Id string
- The ID of the switchover endpoint, for example,
se-abc123.
- environment_
crn string - The CRN of the environment that owns this switchover endpoint, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - id string
- The ID of the switchover endpoint, for example,
se-abc123.
- environment
Crn String - The CRN of the environment that owns this switchover endpoint, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - id String
- The ID of the switchover endpoint, for example,
se-abc123.
- environment
Crn string - The CRN of the environment that owns this switchover endpoint, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - id string
- The ID of the switchover endpoint, for example,
se-abc123.
- environment_
crn str - The CRN of the environment that owns this switchover endpoint, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - id str
- The ID of the switchover endpoint, for example,
se-abc123.
- environment
Crn String - The CRN of the environment that owns this switchover endpoint, for example,
crn://confluent.cloud/organization=org-abc/environment=env-abc123. - id String
- The ID of the switchover endpoint, for example,
se-abc123.
getSwitchoverEndpoint Result
The following output properties are available:
- Display
Name string - (Required String) A human-readable name for the switchover endpoint.
- Endpoints
List<Pulumi.
Confluent Cloud. Outputs. Get Switchover Endpoint Endpoint> - (Required Configuration Block) The endpoint definitions, one per side. Each block exports the following:
- Environment
Crn string - Id string
- Parent
Resource stringCrn - (Required String) The CRN of the switchover pair this endpoint is bound to.
- Phase string
- (Required String) The lifecycle phase of the switchover endpoint.
- Target string
- (Required String) The name of the endpoint that is currently active.
- Display
Name string - (Required String) A human-readable name for the switchover endpoint.
- Endpoints
[]Get
Switchover Endpoint Endpoint - (Required Configuration Block) The endpoint definitions, one per side. Each block exports the following:
- Environment
Crn string - Id string
- Parent
Resource stringCrn - (Required String) The CRN of the switchover pair this endpoint is bound to.
- Phase string
- (Required String) The lifecycle phase of the switchover endpoint.
- Target string
- (Required String) The name of the endpoint that is currently active.
- display_
name string - (Required String) A human-readable name for the switchover endpoint.
- endpoints list(object)
- (Required Configuration Block) The endpoint definitions, one per side. Each block exports the following:
- environment_
crn string - id string
- parent_
resource_ stringcrn - (Required String) The CRN of the switchover pair this endpoint is bound to.
- phase string
- (Required String) The lifecycle phase of the switchover endpoint.
- target string
- (Required String) The name of the endpoint that is currently active.
- display
Name String - (Required String) A human-readable name for the switchover endpoint.
- endpoints
List<Get
Switchover Endpoint Endpoint> - (Required Configuration Block) The endpoint definitions, one per side. Each block exports the following:
- environment
Crn String - id String
- parent
Resource StringCrn - (Required String) The CRN of the switchover pair this endpoint is bound to.
- phase String
- (Required String) The lifecycle phase of the switchover endpoint.
- target String
- (Required String) The name of the endpoint that is currently active.
- display
Name string - (Required String) A human-readable name for the switchover endpoint.
- endpoints
Get
Switchover Endpoint Endpoint[] - (Required Configuration Block) The endpoint definitions, one per side. Each block exports the following:
- environment
Crn string - id string
- parent
Resource stringCrn - (Required String) The CRN of the switchover pair this endpoint is bound to.
- phase string
- (Required String) The lifecycle phase of the switchover endpoint.
- target string
- (Required String) The name of the endpoint that is currently active.
- display_
name str - (Required String) A human-readable name for the switchover endpoint.
- endpoints
Sequence[Get
Switchover Endpoint Endpoint] - (Required Configuration Block) The endpoint definitions, one per side. Each block exports the following:
- environment_
crn str - id str
- parent_
resource_ strcrn - (Required String) The CRN of the switchover pair this endpoint is bound to.
- phase str
- (Required String) The lifecycle phase of the switchover endpoint.
- target str
- (Required String) The name of the endpoint that is currently active.
- display
Name String - (Required String) A human-readable name for the switchover endpoint.
- endpoints List<Property Map>
- (Required Configuration Block) The endpoint definitions, one per side. Each block exports the following:
- environment
Crn String - id String
- parent
Resource StringCrn - (Required String) The CRN of the switchover pair this endpoint is bound to.
- phase String
- (Required String) The lifecycle phase of the switchover endpoint.
- target String
- (Required String) The name of the endpoint that is currently active.
Supporting Types
GetSwitchoverEndpointEndpoint
- Cloud string
- (Required String) The cloud provider this endpoint resolves to.
- Connection
Type string - (Required String) The connection type this endpoint resolves to.
- Endpoint
Filters List<Pulumi.Confluent Cloud. Inputs. Get Switchover Endpoint Endpoint Endpoint Filter> - (Required Configuration Block) Supports the following:
- Hostname string
- (Required String) The resolved hostname for this endpoint.
- Name string
- (Required String) A logical name for this endpoint side.
- Region string
- (Required String) The cloud region this endpoint resolves to.
- Cloud string
- (Required String) The cloud provider this endpoint resolves to.
- Connection
Type string - (Required String) The connection type this endpoint resolves to.
- Endpoint
Filters []GetSwitchover Endpoint Endpoint Endpoint Filter - (Required Configuration Block) Supports the following:
- Hostname string
- (Required String) The resolved hostname for this endpoint.
- Name string
- (Required String) A logical name for this endpoint side.
- Region string
- (Required String) The cloud region this endpoint resolves to.
- cloud string
- (Required String) The cloud provider this endpoint resolves to.
- connection_
type string - (Required String) The connection type this endpoint resolves to.
- endpoint_
filters list(object) - (Required Configuration Block) Supports the following:
- hostname string
- (Required String) The resolved hostname for this endpoint.
- name string
- (Required String) A logical name for this endpoint side.
- region string
- (Required String) The cloud region this endpoint resolves to.
- cloud String
- (Required String) The cloud provider this endpoint resolves to.
- connection
Type String - (Required String) The connection type this endpoint resolves to.
- endpoint
Filters List<GetSwitchover Endpoint Endpoint Endpoint Filter> - (Required Configuration Block) Supports the following:
- hostname String
- (Required String) The resolved hostname for this endpoint.
- name String
- (Required String) A logical name for this endpoint side.
- region String
- (Required String) The cloud region this endpoint resolves to.
- cloud string
- (Required String) The cloud provider this endpoint resolves to.
- connection
Type string - (Required String) The connection type this endpoint resolves to.
- endpoint
Filters GetSwitchover Endpoint Endpoint Endpoint Filter[] - (Required Configuration Block) Supports the following:
- hostname string
- (Required String) The resolved hostname for this endpoint.
- name string
- (Required String) A logical name for this endpoint side.
- region string
- (Required String) The cloud region this endpoint resolves to.
- cloud str
- (Required String) The cloud provider this endpoint resolves to.
- connection_
type str - (Required String) The connection type this endpoint resolves to.
- endpoint_
filters Sequence[GetSwitchover Endpoint Endpoint Endpoint Filter] - (Required Configuration Block) Supports the following:
- hostname str
- (Required String) The resolved hostname for this endpoint.
- name str
- (Required String) A logical name for this endpoint side.
- region str
- (Required String) The cloud region this endpoint resolves to.
- cloud String
- (Required String) The cloud provider this endpoint resolves to.
- connection
Type String - (Required String) The connection type this endpoint resolves to.
- endpoint
Filters List<Property Map> - (Required Configuration Block) Supports the following:
- hostname String
- (Required String) The resolved hostname for this endpoint.
- name String
- (Required String) A logical name for this endpoint side.
- region String
- (Required String) The cloud region this endpoint resolves to.
GetSwitchoverEndpointEndpointEndpointFilter
- Access
Point stringCrn - (Required String) The CRN of the network access point, for access-point (PNI) endpoints.
- Network
Crn string - (Required String) The CRN of the network, for network-based private endpoints.
- Type string
- (Required String) Whether the endpoint is
privateorpublic.
- Access
Point stringCrn - (Required String) The CRN of the network access point, for access-point (PNI) endpoints.
- Network
Crn string - (Required String) The CRN of the network, for network-based private endpoints.
- Type string
- (Required String) Whether the endpoint is
privateorpublic.
- access_
point_ stringcrn - (Required String) The CRN of the network access point, for access-point (PNI) endpoints.
- network_
crn string - (Required String) The CRN of the network, for network-based private endpoints.
- type string
- (Required String) Whether the endpoint is
privateorpublic.
- access
Point StringCrn - (Required String) The CRN of the network access point, for access-point (PNI) endpoints.
- network
Crn String - (Required String) The CRN of the network, for network-based private endpoints.
- type String
- (Required String) Whether the endpoint is
privateorpublic.
- access
Point stringCrn - (Required String) The CRN of the network access point, for access-point (PNI) endpoints.
- network
Crn string - (Required String) The CRN of the network, for network-based private endpoints.
- type string
- (Required String) Whether the endpoint is
privateorpublic.
- access_
point_ strcrn - (Required String) The CRN of the network access point, for access-point (PNI) endpoints.
- network_
crn str - (Required String) The CRN of the network, for network-based private endpoints.
- type str
- (Required String) Whether the endpoint is
privateorpublic.
- access
Point StringCrn - (Required String) The CRN of the network access point, for access-point (PNI) endpoints.
- network
Crn String - (Required String) The CRN of the network, for network-based private endpoints.
- type String
- (Required String) Whether the endpoint is
privateorpublic.
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