oci_kafka_list_oci_clusters
List all OCI Kafka clusters in a compartment with details like OCID, state, version, and shape. Use it to discover clusters and prepare for cluster info retrieval.
Instructions
List all Kafka clusters in an OCI compartment.
Returns the count of clusters and a list with each cluster's OCID, display name, lifecycle state, Kafka version, broker shape, and creation time.
Args: compartment_id: OCI compartment OCID. Defaults to OCI_COMPARTMENT_ID env var, then to the tenancy OCID from the OCI config file (~/.oci/config).
Use this to discover available clusters, check their lifecycle states, or find a cluster OCID before calling oci_kafka_get_oci_cluster_info.
If no compartment_id is provided, the tool automatically uses the tenancy OCID from the OCI config file as the default compartment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compartment_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |