1. Packages
  2. Confluent Provider
  3. API Docs
  4. getSchemaRegistryClusterConfig
Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

confluentcloud.getSchemaRegistryClusterConfig

Explore with Pulumi AI

confluentcloud logo
Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

    General Availability

    confluentcloud.SchemaRegistryClusterConfig describes a Schema Registry Cluster Config data source.

    Example Usage

    Option #1: Manage multiple Schema Registry clusters in the same Pulumi Stack

    import * as pulumi from "@pulumi/pulumi";
    import * as confluentcloud from "@pulumi/confluentcloud";
    
    const example = confluentcloud.getSchemaRegistryClusterConfig({
        schemaRegistryCluster: {
            id: essentials.id,
        },
        restEndpoint: essentials.restEndpoint,
        credentials: {
            key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
            secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
        },
    });
    export const compatibilityLevel = example.then(example => example.compatibilityLevel);
    
    import pulumi
    import pulumi_confluentcloud as confluentcloud
    
    example = confluentcloud.get_schema_registry_cluster_config(schema_registry_cluster={
            "id": essentials["id"],
        },
        rest_endpoint=essentials["restEndpoint"],
        credentials={
            "key": "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
            "secret": "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
        })
    pulumi.export("compatibilityLevel", example.compatibility_level)
    
    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.LookupSchemaRegistryClusterConfig(ctx, &confluentcloud.LookupSchemaRegistryClusterConfigArgs{
    			SchemaRegistryCluster: confluentcloud.GetSchemaRegistryClusterConfigSchemaRegistryCluster{
    				Id: essentials.Id,
    			},
    			RestEndpoint: pulumi.StringRef(essentials.RestEndpoint),
    			Credentials: confluentcloud.GetSchemaRegistryClusterConfigCredentials{
    				Key:    "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
    				Secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("compatibilityLevel", example.CompatibilityLevel)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ConfluentCloud = Pulumi.ConfluentCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = ConfluentCloud.GetSchemaRegistryClusterConfig.Invoke(new()
        {
            SchemaRegistryCluster = new ConfluentCloud.Inputs.GetSchemaRegistryClusterConfigSchemaRegistryClusterInputArgs
            {
                Id = essentials.Id,
            },
            RestEndpoint = essentials.RestEndpoint,
            Credentials = new ConfluentCloud.Inputs.GetSchemaRegistryClusterConfigCredentialsInputArgs
            {
                Key = "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
                Secret = "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["compatibilityLevel"] = example.Apply(getSchemaRegistryClusterConfigResult => getSchemaRegistryClusterConfigResult.CompatibilityLevel),
        };
    });
    
    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.GetSchemaRegistryClusterConfigArgs;
    import com.pulumi.confluentcloud.inputs.GetSchemaRegistryClusterConfigSchemaRegistryClusterArgs;
    import com.pulumi.confluentcloud.inputs.GetSchemaRegistryClusterConfigCredentialsArgs;
    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 example = ConfluentcloudFunctions.getSchemaRegistryClusterConfig(GetSchemaRegistryClusterConfigArgs.builder()
                .schemaRegistryCluster(GetSchemaRegistryClusterConfigSchemaRegistryClusterArgs.builder()
                    .id(essentials.id())
                    .build())
                .restEndpoint(essentials.restEndpoint())
                .credentials(GetSchemaRegistryClusterConfigCredentialsArgs.builder()
                    .key("<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>")
                    .secret("<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>")
                    .build())
                .build());
    
            ctx.export("compatibilityLevel", example.applyValue(getSchemaRegistryClusterConfigResult -> getSchemaRegistryClusterConfigResult.compatibilityLevel()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: confluentcloud:getSchemaRegistryClusterConfig
          Arguments:
            schemaRegistryCluster:
              id: ${essentials.id}
            restEndpoint: ${essentials.restEndpoint}
            credentials:
              key: <Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>
              secret: <Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>
    outputs:
      compatibilityLevel: ${example.compatibilityLevel}
    

    Option #2: Manage a single Schema Registry cluster in the same Pulumi Stack

    import * as pulumi from "@pulumi/pulumi";
    import * as confluentcloud from "@pulumi/confluentcloud";
    
    const example = confluentcloud.getSchemaRegistryClusterConfig({});
    export const compatibilityLevel = example.then(example => example.compatibilityLevel);
    
    import pulumi
    import pulumi_confluentcloud as confluentcloud
    
    example = confluentcloud.get_schema_registry_cluster_config()
    pulumi.export("compatibilityLevel", example.compatibility_level)
    
    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.LookupSchemaRegistryClusterConfig(ctx, &confluentcloud.LookupSchemaRegistryClusterConfigArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("compatibilityLevel", example.CompatibilityLevel)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ConfluentCloud = Pulumi.ConfluentCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = ConfluentCloud.GetSchemaRegistryClusterConfig.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["compatibilityLevel"] = example.Apply(getSchemaRegistryClusterConfigResult => getSchemaRegistryClusterConfigResult.CompatibilityLevel),
        };
    });
    
    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.GetSchemaRegistryClusterConfigArgs;
    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 example = ConfluentcloudFunctions.getSchemaRegistryClusterConfig();
    
            ctx.export("compatibilityLevel", example.applyValue(getSchemaRegistryClusterConfigResult -> getSchemaRegistryClusterConfigResult.compatibilityLevel()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: confluentcloud:getSchemaRegistryClusterConfig
          Arguments: {}
    outputs:
      compatibilityLevel: ${example.compatibilityLevel}
    

    Using getSchemaRegistryClusterConfig

    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 getSchemaRegistryClusterConfig(args: GetSchemaRegistryClusterConfigArgs, opts?: InvokeOptions): Promise<GetSchemaRegistryClusterConfigResult>
    function getSchemaRegistryClusterConfigOutput(args: GetSchemaRegistryClusterConfigOutputArgs, opts?: InvokeOptions): Output<GetSchemaRegistryClusterConfigResult>
    def get_schema_registry_cluster_config(credentials: Optional[GetSchemaRegistryClusterConfigCredentials] = None,
                                           rest_endpoint: Optional[str] = None,
                                           schema_registry_cluster: Optional[GetSchemaRegistryClusterConfigSchemaRegistryCluster] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetSchemaRegistryClusterConfigResult
    def get_schema_registry_cluster_config_output(credentials: Optional[pulumi.Input[GetSchemaRegistryClusterConfigCredentialsArgs]] = None,
                                           rest_endpoint: Optional[pulumi.Input[str]] = None,
                                           schema_registry_cluster: Optional[pulumi.Input[GetSchemaRegistryClusterConfigSchemaRegistryClusterArgs]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetSchemaRegistryClusterConfigResult]
    func LookupSchemaRegistryClusterConfig(ctx *Context, args *LookupSchemaRegistryClusterConfigArgs, opts ...InvokeOption) (*LookupSchemaRegistryClusterConfigResult, error)
    func LookupSchemaRegistryClusterConfigOutput(ctx *Context, args *LookupSchemaRegistryClusterConfigOutputArgs, opts ...InvokeOption) LookupSchemaRegistryClusterConfigResultOutput

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

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

    The following arguments are supported:

    Credentials GetSchemaRegistryClusterConfigCredentials
    RestEndpoint string
    The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
    SchemaRegistryCluster GetSchemaRegistryClusterConfigSchemaRegistryCluster
    credentials GetSchemaRegistryClusterConfigCredentials
    restEndpoint String
    The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
    schemaRegistryCluster GetSchemaRegistryClusterConfigSchemaRegistryCluster
    credentials GetSchemaRegistryClusterConfigCredentials
    restEndpoint string
    The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
    schemaRegistryCluster GetSchemaRegistryClusterConfigSchemaRegistryCluster
    credentials GetSchemaRegistryClusterConfigCredentials
    rest_endpoint str
    The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
    schema_registry_cluster GetSchemaRegistryClusterConfigSchemaRegistryCluster
    credentials Property Map
    restEndpoint String
    The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
    schemaRegistryCluster Property Map

    getSchemaRegistryClusterConfig Result

    The following output properties are available:

    CompatibilityGroup string
    (Required String) The global Schema Registry compatibility group.
    CompatibilityLevel string
    (Required String) The global Schema Registry compatibility level. Accepted values are: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, and NONE. See the Compatibility Types for more details.
    Id string
    The provider-assigned unique ID for this managed resource.
    Credentials Pulumi.ConfluentCloud.Outputs.GetSchemaRegistryClusterConfigCredentials
    RestEndpoint string
    SchemaRegistryCluster Pulumi.ConfluentCloud.Outputs.GetSchemaRegistryClusterConfigSchemaRegistryCluster
    CompatibilityGroup string
    (Required String) The global Schema Registry compatibility group.
    CompatibilityLevel string
    (Required String) The global Schema Registry compatibility level. Accepted values are: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, and NONE. See the Compatibility Types for more details.
    Id string
    The provider-assigned unique ID for this managed resource.
    Credentials GetSchemaRegistryClusterConfigCredentials
    RestEndpoint string
    SchemaRegistryCluster GetSchemaRegistryClusterConfigSchemaRegistryCluster
    compatibilityGroup String
    (Required String) The global Schema Registry compatibility group.
    compatibilityLevel String
    (Required String) The global Schema Registry compatibility level. Accepted values are: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, and NONE. See the Compatibility Types for more details.
    id String
    The provider-assigned unique ID for this managed resource.
    credentials GetSchemaRegistryClusterConfigCredentials
    restEndpoint String
    schemaRegistryCluster GetSchemaRegistryClusterConfigSchemaRegistryCluster
    compatibilityGroup string
    (Required String) The global Schema Registry compatibility group.
    compatibilityLevel string
    (Required String) The global Schema Registry compatibility level. Accepted values are: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, and NONE. See the Compatibility Types for more details.
    id string
    The provider-assigned unique ID for this managed resource.
    credentials GetSchemaRegistryClusterConfigCredentials
    restEndpoint string
    schemaRegistryCluster GetSchemaRegistryClusterConfigSchemaRegistryCluster
    compatibility_group str
    (Required String) The global Schema Registry compatibility group.
    compatibility_level str
    (Required String) The global Schema Registry compatibility level. Accepted values are: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, and NONE. See the Compatibility Types for more details.
    id str
    The provider-assigned unique ID for this managed resource.
    credentials GetSchemaRegistryClusterConfigCredentials
    rest_endpoint str
    schema_registry_cluster GetSchemaRegistryClusterConfigSchemaRegistryCluster
    compatibilityGroup String
    (Required String) The global Schema Registry compatibility group.
    compatibilityLevel String
    (Required String) The global Schema Registry compatibility level. Accepted values are: BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, and NONE. See the Compatibility Types for more details.
    id String
    The provider-assigned unique ID for this managed resource.
    credentials Property Map
    restEndpoint String
    schemaRegistryCluster Property Map

    Supporting Types

    GetSchemaRegistryClusterConfigCredentials

    Key string
    The Schema Registry API Key.
    Secret string
    The Schema Registry API Secret.
    Key string
    The Schema Registry API Key.
    Secret string
    The Schema Registry API Secret.
    key String
    The Schema Registry API Key.
    secret String
    The Schema Registry API Secret.
    key string
    The Schema Registry API Key.
    secret string
    The Schema Registry API Secret.
    key str
    The Schema Registry API Key.
    secret str
    The Schema Registry API Secret.
    key String
    The Schema Registry API Key.
    secret String
    The Schema Registry API Secret.

    GetSchemaRegistryClusterConfigSchemaRegistryCluster

    Id string
    The ID of the Schema Registry cluster, for example, lsrc-abc123.
    Id string
    The ID of the Schema Registry cluster, for example, lsrc-abc123.
    id String
    The ID of the Schema Registry cluster, for example, lsrc-abc123.
    id string
    The ID of the Schema Registry cluster, for example, lsrc-abc123.
    id str
    The ID of the Schema Registry cluster, for example, lsrc-abc123.
    id String
    The ID of the Schema Registry cluster, for example, lsrc-abc123.

    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 v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi