confluent_schema_registry_clusters
describes a data source for Schema Registry Clusters.
provider "confluent" {
cloud_api_key = var.confluent_cloud_api_key # optionally use CONFLUENT_CLOUD_API_KEY env var
cloud_api_secret = var.confluent_cloud_api_secret # optionally use CONFLUENT_CLOUD_API_SECRET env var
}
data "confluent_schema_registry_clusters" "main" {}
The following arguments are supported:
In addition to the preceding arguments, the following attributes are exported:
clusters
- (Required List of Object) List of Schema Registry clusters. Each Schema Registry cluster object exports the following attributes:
id
- (Required String) The id of the Scheme Registry cluster.environment
- (Required Object) exports the following attributes:
id
- (Required String) The id of the environment.package
- (Required String) The type of the billing package. Accepted values are: ESSENTIALS
and ADVANCED
.region
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Schema Registry region that the Schema Registry cluster belongs to, for example, sgreg-1
. See Schema Registry Regions to find a corresponding region ID based on desired cloud provider region and types of the billing package or use confluent_schema_registry_region
data source.api_version
- (Required String) An API Version of the schema version of the Schema Registry cluster, for example, stream-governance/v2
.kind
- (Required String) A kind of the Schema Registry cluster, for example, Cluster
.rest_endpoint
- (Required String) The HTTP endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-west-2.aws.confluent.cloud
.display_name
- (Required String) The name of the Schema Registry cluster, for example, Stream Governance Package
.resource_name
- (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
.