Data Source: oci_managed_kafka_kafka_clusters
This data source provides the list of Kafka Clusters in Oracle Cloud Infrastructure Managed Kafka service.
Gets a list of KafkaClusters.
Example Usage
data "oci_managed_kafka_kafka_clusters" "test_kafka_clusters" {
#Optional
compartment_id = var.compartment_id
display_name = var.kafka_cluster_display_name
id = var.kafka_cluster_id
state = var.kafka_cluster_state
}
Argument Reference
The following arguments are supported:
compartment_id- (Optional) The OCID of the compartment in which to list resources.display_name- (Optional) A filter to return only resources that match the given display name exactly.id- (Optional) The OCID of the KafkaCluster.state- (Optional) A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
Attributes Reference
The following attributes are exported:
kafka_cluster_collection- The list of kafka_cluster_collection.
KafkaCluster Reference
The following attributes are exported:
access_subnets- Subnets where broker/coordinator VNICs will be created.subnets- Subnets OCIDs
broker_shape- Configuration of the broker node.node_count- Number of Kafka broker nodesocpu_count- Number of OCPUs per nodesstorage_size_in_gbs- Size of the storage per nodes.
client_certificate_bundle- CA certificate bundle for mTLS broker authentication.cluster_config_id- The OCID of Kafka Cluster configuration objectcluster_config_version- The version of configuration objectcluster_type- Type of the cluster to spin up. DEVELOPMENT - setting that allows to sacrifice HA and spin up cluster on a single node PRODUCTION - Minimum allowed broker count is 3compartment_id- The OCID of the compartment.coordination_type- Kafka coordination type. Set of available types depends on Kafka versiondefined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}display_name- A user-friendly name. Does not have to be unique, and it’s changeable.freeform_tags- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}id- The OCID of the KafkaCluster.kafka_bootstrap_urls- Bootstrap URL that can be used to connect to Kafkaname- Name of the Kafka listener providing this bootstrap URLurl- Bootstrap URL
kafka_version- Version of Kafka to use to spin up the clusterlifecycle_details- A message that describes the current state of the KafkaCluster in more detail. For example, can be used to provide actionable information for a resource in the Failed state.secret_id- The OCID of the secret that contains superuser password.state- The current state of the KafkaCluster.system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- The date and time the KafkaCluster was created, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Ztime_updated- The date and time the KafkaCluster was updated, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Z