Confluent v2.10.0 published on Wednesday, Nov 20, 2024 by Pulumi
confluentcloud.getSchemaRegistryClusterConfig
Explore with Pulumi AI
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
Pulumi.
Confluent Cloud. Inputs. Get Schema Registry Cluster Config Credentials - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry Pulumi.Cluster Confluent Cloud. Inputs. Get Schema Registry Cluster Config Schema Registry Cluster
- Credentials
Get
Schema Registry Cluster Config Credentials - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry GetCluster Schema Registry Cluster Config Schema Registry Cluster
- credentials
Get
Schema Registry Cluster Config Credentials - rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry GetCluster Schema Registry Cluster Config Schema Registry Cluster
- credentials
Get
Schema Registry Cluster Config Credentials - rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry GetCluster Schema Registry Cluster Config Schema Registry Cluster
- credentials
Get
Schema Registry Cluster Config Credentials - rest_
endpoint str - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema_
registry_ Getcluster Schema Registry Cluster Config Schema Registry Cluster
- credentials Property Map
- rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry Property MapCluster
getSchemaRegistryClusterConfig Result
The following output properties are available:
- Compatibility
Group string - (Required String) The global Schema Registry compatibility group.
- Compatibility
Level string - (Required String) The global Schema Registry compatibility level. Accepted values are:
BACKWARD
,BACKWARD_TRANSITIVE
,FORWARD
,FORWARD_TRANSITIVE
,FULL
,FULL_TRANSITIVE
, andNONE
. See the Compatibility Types for more details. - Id string
- The provider-assigned unique ID for this managed resource.
- Credentials
Pulumi.
Confluent Cloud. Outputs. Get Schema Registry Cluster Config Credentials - Rest
Endpoint string - Schema
Registry Pulumi.Cluster Confluent Cloud. Outputs. Get Schema Registry Cluster Config Schema Registry Cluster
- Compatibility
Group string - (Required String) The global Schema Registry compatibility group.
- Compatibility
Level string - (Required String) The global Schema Registry compatibility level. Accepted values are:
BACKWARD
,BACKWARD_TRANSITIVE
,FORWARD
,FORWARD_TRANSITIVE
,FULL
,FULL_TRANSITIVE
, andNONE
. See the Compatibility Types for more details. - Id string
- The provider-assigned unique ID for this managed resource.
- Credentials
Get
Schema Registry Cluster Config Credentials - Rest
Endpoint string - Schema
Registry GetCluster Schema Registry Cluster Config Schema Registry Cluster
- compatibility
Group String - (Required String) The global Schema Registry compatibility group.
- compatibility
Level String - (Required String) The global Schema Registry compatibility level. Accepted values are:
BACKWARD
,BACKWARD_TRANSITIVE
,FORWARD
,FORWARD_TRANSITIVE
,FULL
,FULL_TRANSITIVE
, andNONE
. See the Compatibility Types for more details. - id String
- The provider-assigned unique ID for this managed resource.
- credentials
Get
Schema Registry Cluster Config Credentials - rest
Endpoint String - schema
Registry GetCluster Schema Registry Cluster Config Schema Registry Cluster
- compatibility
Group string - (Required String) The global Schema Registry compatibility group.
- compatibility
Level string - (Required String) The global Schema Registry compatibility level. Accepted values are:
BACKWARD
,BACKWARD_TRANSITIVE
,FORWARD
,FORWARD_TRANSITIVE
,FULL
,FULL_TRANSITIVE
, andNONE
. See the Compatibility Types for more details. - id string
- The provider-assigned unique ID for this managed resource.
- credentials
Get
Schema Registry Cluster Config Credentials - rest
Endpoint string - schema
Registry GetCluster Schema Registry Cluster Config Schema Registry Cluster
- 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
, andNONE
. See the Compatibility Types for more details. - id str
- The provider-assigned unique ID for this managed resource.
- credentials
Get
Schema Registry Cluster Config Credentials - rest_
endpoint str - schema_
registry_ Getcluster Schema Registry Cluster Config Schema Registry Cluster
- compatibility
Group String - (Required String) The global Schema Registry compatibility group.
- compatibility
Level String - (Required String) The global Schema Registry compatibility level. Accepted values are:
BACKWARD
,BACKWARD_TRANSITIVE
,FORWARD
,FORWARD_TRANSITIVE
,FULL
,FULL_TRANSITIVE
, andNONE
. See the Compatibility Types for more details. - id String
- The provider-assigned unique ID for this managed resource.
- credentials Property Map
- rest
Endpoint String - schema
Registry Property MapCluster
Supporting Types
GetSchemaRegistryClusterConfigCredentials
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.