1. Packages
  2. Confluent Cloud
  3. API Docs
  4. getSchemaRegistryCluster
Confluent v1.26.0 published on Thursday, Sep 28, 2023 by Pulumi

confluentcloud.getSchemaRegistryCluster

Explore with Pulumi AI

confluentcloud logo
Confluent v1.26.0 published on Thursday, Sep 28, 2023 by Pulumi

    General Availability

    confluentcloud.SchemaRegistryCluster describes a Schema Registry cluster data source.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ConfluentCloud = Pulumi.ConfluentCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleUsingIdSchemaRegistryCluster = ConfluentCloud.GetSchemaRegistryCluster.Invoke(new()
        {
            Id = "lsrc-abc123",
            Environment = new ConfluentCloud.Inputs.GetSchemaRegistryClusterEnvironmentInputArgs
            {
                Id = "env-xyz456",
            },
        });
    
        var exampleUsingNameSchemaRegistryCluster = ConfluentCloud.GetSchemaRegistryCluster.Invoke(new()
        {
            DisplayName = "Stream Governance Package",
            Environment = new ConfluentCloud.Inputs.GetSchemaRegistryClusterEnvironmentInputArgs
            {
                Id = "env-xyz456",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["exampleUsingId"] = exampleUsingIdSchemaRegistryCluster,
            ["exampleUsingName"] = exampleUsingNameSchemaRegistryCluster,
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-confluentcloud/sdk/go/confluentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleUsingIdSchemaRegistryCluster, err := confluentcloud.LookupSchemaRegistryCluster(ctx, &confluentcloud.LookupSchemaRegistryClusterArgs{
    			Id: pulumi.StringRef("lsrc-abc123"),
    			Environment: confluentcloud.GetSchemaRegistryClusterEnvironment{
    				Id: "env-xyz456",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("exampleUsingId", exampleUsingIdSchemaRegistryCluster)
    		exampleUsingNameSchemaRegistryCluster, err := confluentcloud.LookupSchemaRegistryCluster(ctx, &confluentcloud.LookupSchemaRegistryClusterArgs{
    			DisplayName: pulumi.StringRef("Stream Governance Package"),
    			Environment: confluentcloud.GetSchemaRegistryClusterEnvironment{
    				Id: "env-xyz456",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("exampleUsingName", exampleUsingNameSchemaRegistryCluster)
    		return nil
    	})
    }
    
    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.GetSchemaRegistryClusterArgs;
    import com.pulumi.confluentcloud.inputs.GetSchemaRegistryClusterEnvironmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 exampleUsingIdSchemaRegistryCluster = ConfluentcloudFunctions.getSchemaRegistryCluster(GetSchemaRegistryClusterArgs.builder()
                .id("lsrc-abc123")
                .environment(GetSchemaRegistryClusterEnvironmentArgs.builder()
                    .id("env-xyz456")
                    .build())
                .build());
    
            ctx.export("exampleUsingId", exampleUsingIdSchemaRegistryCluster.applyValue(getSchemaRegistryClusterResult -> getSchemaRegistryClusterResult));
            final var exampleUsingNameSchemaRegistryCluster = ConfluentcloudFunctions.getSchemaRegistryCluster(GetSchemaRegistryClusterArgs.builder()
                .displayName("Stream Governance Package")
                .environment(GetSchemaRegistryClusterEnvironmentArgs.builder()
                    .id("env-xyz456")
                    .build())
                .build());
    
            ctx.export("exampleUsingName", exampleUsingNameSchemaRegistryCluster.applyValue(getSchemaRegistryClusterResult -> getSchemaRegistryClusterResult));
        }
    }
    
    import pulumi
    import pulumi_confluentcloud as confluentcloud
    
    example_using_id_schema_registry_cluster = confluentcloud.get_schema_registry_cluster(id="lsrc-abc123",
        environment=confluentcloud.GetSchemaRegistryClusterEnvironmentArgs(
            id="env-xyz456",
        ))
    pulumi.export("exampleUsingId", example_using_id_schema_registry_cluster)
    example_using_name_schema_registry_cluster = confluentcloud.get_schema_registry_cluster(display_name="Stream Governance Package",
        environment=confluentcloud.GetSchemaRegistryClusterEnvironmentArgs(
            id="env-xyz456",
        ))
    pulumi.export("exampleUsingName", example_using_name_schema_registry_cluster)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as confluentcloud from "@pulumi/confluentcloud";
    
    const exampleUsingIdSchemaRegistryCluster = confluentcloud.getSchemaRegistryCluster({
        id: "lsrc-abc123",
        environment: {
            id: "env-xyz456",
        },
    });
    export const exampleUsingId = exampleUsingIdSchemaRegistryCluster;
    const exampleUsingNameSchemaRegistryCluster = confluentcloud.getSchemaRegistryCluster({
        displayName: "Stream Governance Package",
        environment: {
            id: "env-xyz456",
        },
    });
    export const exampleUsingName = exampleUsingNameSchemaRegistryCluster;
    
    variables:
      exampleUsingIdSchemaRegistryCluster:
        fn::invoke:
          Function: confluentcloud:getSchemaRegistryCluster
          Arguments:
            id: lsrc-abc123
            environment:
              id: env-xyz456
      exampleUsingNameSchemaRegistryCluster:
        fn::invoke:
          Function: confluentcloud:getSchemaRegistryCluster
          Arguments:
            displayName: Stream Governance Package
            environment:
              id: env-xyz456
    outputs:
      exampleUsingId: ${exampleUsingIdSchemaRegistryCluster}
      exampleUsingName: ${exampleUsingNameSchemaRegistryCluster}
    

    Using getSchemaRegistryCluster

    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 getSchemaRegistryCluster(args: GetSchemaRegistryClusterArgs, opts?: InvokeOptions): Promise<GetSchemaRegistryClusterResult>
    function getSchemaRegistryClusterOutput(args: GetSchemaRegistryClusterOutputArgs, opts?: InvokeOptions): Output<GetSchemaRegistryClusterResult>
    def get_schema_registry_cluster(display_name: Optional[str] = None,
                                    environment: Optional[GetSchemaRegistryClusterEnvironment] = None,
                                    id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetSchemaRegistryClusterResult
    def get_schema_registry_cluster_output(display_name: Optional[pulumi.Input[str]] = None,
                                    environment: Optional[pulumi.Input[GetSchemaRegistryClusterEnvironmentArgs]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetSchemaRegistryClusterResult]
    func LookupSchemaRegistryCluster(ctx *Context, args *LookupSchemaRegistryClusterArgs, opts ...InvokeOption) (*LookupSchemaRegistryClusterResult, error)
    func LookupSchemaRegistryClusterOutput(ctx *Context, args *LookupSchemaRegistryClusterOutputArgs, opts ...InvokeOption) LookupSchemaRegistryClusterResultOutput

    > Note: This function is named LookupSchemaRegistryCluster in the Go SDK.

    public static class GetSchemaRegistryCluster 
    {
        public static Task<GetSchemaRegistryClusterResult> InvokeAsync(GetSchemaRegistryClusterArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaRegistryClusterResult> Invoke(GetSchemaRegistryClusterInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaRegistryClusterResult> getSchemaRegistryCluster(GetSchemaRegistryClusterArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: confluentcloud:index/getSchemaRegistryCluster:getSchemaRegistryCluster
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Environment Pulumi.ConfluentCloud.Inputs.GetSchemaRegistryClusterEnvironment
    DisplayName string

    The name for the Schema Registry cluster.

    Id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    Environment GetSchemaRegistryClusterEnvironment
    DisplayName string

    The name for the Schema Registry cluster.

    Id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    environment GetSchemaRegistryClusterEnvironment
    displayName String

    The name for the Schema Registry cluster.

    id String

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    environment GetSchemaRegistryClusterEnvironment
    displayName string

    The name for the Schema Registry cluster.

    id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    environment GetSchemaRegistryClusterEnvironment
    display_name str

    The name for the Schema Registry cluster.

    id str

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    environment Property Map
    displayName String

    The name for the Schema Registry cluster.

    id String

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    getSchemaRegistryCluster Result

    The following output properties are available:

    ApiVersion string

    (Required String) An API Version of the schema version of the Schema Registry cluster, for example, stream-governance/v2.

    DisplayName string

    (Required String) The name of the Schema Registry cluster, for example, Stream Governance Package.

    Environment Pulumi.ConfluentCloud.Outputs.GetSchemaRegistryClusterEnvironment
    Id string

    (Required String) The ID of the Schema Registry region that the Schema Registry cluster belongs to, for example, sgreg-1. See Schema Registry Regions.

    Kind string

    (Required String) A kind of the Schema Registry cluster, for example, Cluster.

    Package string

    (Required String) The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    Regions List<Pulumi.ConfluentCloud.Outputs.GetSchemaRegistryClusterRegion>

    (Required Configuration Block) supports the following:

    ResourceName string

    (Required String) The Confluent Resource Name of the Schema Registry cluster, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123/schema-registry=lsrc-abc123.

    RestEndpoint string

    (Required String) The HTTP endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-west-2.aws.confluent.cloud.

    ApiVersion string

    (Required String) An API Version of the schema version of the Schema Registry cluster, for example, stream-governance/v2.

    DisplayName string

    (Required String) The name of the Schema Registry cluster, for example, Stream Governance Package.

    Environment GetSchemaRegistryClusterEnvironment
    Id string

    (Required String) The ID of the Schema Registry region that the Schema Registry cluster belongs to, for example, sgreg-1. See Schema Registry Regions.

    Kind string

    (Required String) A kind of the Schema Registry cluster, for example, Cluster.

    Package string

    (Required String) The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    Regions []GetSchemaRegistryClusterRegion

    (Required Configuration Block) supports the following:

    ResourceName string

    (Required String) The Confluent Resource Name of the Schema Registry cluster, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123/schema-registry=lsrc-abc123.

    RestEndpoint string

    (Required String) The HTTP endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-west-2.aws.confluent.cloud.

    apiVersion String

    (Required String) An API Version of the schema version of the Schema Registry cluster, for example, stream-governance/v2.

    displayName String

    (Required String) The name of the Schema Registry cluster, for example, Stream Governance Package.

    environment GetSchemaRegistryClusterEnvironment
    id String

    (Required String) The ID of the Schema Registry region that the Schema Registry cluster belongs to, for example, sgreg-1. See Schema Registry Regions.

    kind String

    (Required String) A kind of the Schema Registry cluster, for example, Cluster.

    package_ String

    (Required String) The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    regions List<GetSchemaRegistryClusterRegion>

    (Required Configuration Block) supports the following:

    resourceName String

    (Required String) The Confluent Resource Name of the Schema Registry cluster, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123/schema-registry=lsrc-abc123.

    restEndpoint String

    (Required String) The HTTP endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-west-2.aws.confluent.cloud.

    apiVersion string

    (Required String) An API Version of the schema version of the Schema Registry cluster, for example, stream-governance/v2.

    displayName string

    (Required String) The name of the Schema Registry cluster, for example, Stream Governance Package.

    environment GetSchemaRegistryClusterEnvironment
    id string

    (Required String) The ID of the Schema Registry region that the Schema Registry cluster belongs to, for example, sgreg-1. See Schema Registry Regions.

    kind string

    (Required String) A kind of the Schema Registry cluster, for example, Cluster.

    package string

    (Required String) The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    regions GetSchemaRegistryClusterRegion[]

    (Required Configuration Block) supports the following:

    resourceName string

    (Required String) The Confluent Resource Name of the Schema Registry cluster, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123/schema-registry=lsrc-abc123.

    restEndpoint string

    (Required String) The HTTP endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-west-2.aws.confluent.cloud.

    api_version str

    (Required String) An API Version of the schema version of the Schema Registry cluster, for example, stream-governance/v2.

    display_name str

    (Required String) The name of the Schema Registry cluster, for example, Stream Governance Package.

    environment GetSchemaRegistryClusterEnvironment
    id str

    (Required String) The ID of the Schema Registry region that the Schema Registry cluster belongs to, for example, sgreg-1. See Schema Registry Regions.

    kind str

    (Required String) A kind of the Schema Registry cluster, for example, Cluster.

    package str

    (Required String) The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    regions Sequence[GetSchemaRegistryClusterRegion]

    (Required Configuration Block) supports the following:

    resource_name str

    (Required String) The Confluent Resource Name of the Schema Registry cluster, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123/schema-registry=lsrc-abc123.

    rest_endpoint str

    (Required String) The HTTP endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-west-2.aws.confluent.cloud.

    apiVersion String

    (Required String) An API Version of the schema version of the Schema Registry cluster, for example, stream-governance/v2.

    displayName String

    (Required String) The name of the Schema Registry cluster, for example, Stream Governance Package.

    environment Property Map
    id String

    (Required String) The ID of the Schema Registry region that the Schema Registry cluster belongs to, for example, sgreg-1. See Schema Registry Regions.

    kind String

    (Required String) A kind of the Schema Registry cluster, for example, Cluster.

    package String

    (Required String) The type of the billing package. Accepted values are: ESSENTIALS and ADVANCED.

    regions List<Property Map>

    (Required Configuration Block) supports the following:

    resourceName String

    (Required String) The Confluent Resource Name of the Schema Registry cluster, for example, crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123/schema-registry=lsrc-abc123.

    restEndpoint String

    (Required String) The HTTP endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-west-2.aws.confluent.cloud.

    Supporting Types

    GetSchemaRegistryClusterEnvironment

    Id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    Id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    id String

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    id str

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    id String

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    GetSchemaRegistryClusterRegion

    Id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    Id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    id String

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    id string

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    id str

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    id String

    The ID of the Environment that the Schema Registry cluster belongs to, for example, env-xyz456.

    Note: Exactly one from the id and display_name attributes must be specified.

    Package Details

    Repository
    Confluent Cloud pulumi/pulumi-confluentcloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the confluent Terraform Provider.

    confluentcloud logo
    Confluent v1.26.0 published on Thursday, Sep 28, 2023 by Pulumi