confluent / confluent.cloud / 0.1.0 / module / cluster_info Get information on existing clusters | "added in version" 0.0.1 of confluent.cloud" Authors: Keith Resar (@keithresar)confluent.cloud.cluster_info (0.1.0) — module
Install with ansible-galaxy collection install confluent.cloud:==0.1.0
collections: - name: confluent.cloud version: 0.1.0
Enumerate and filter clusters within a Confluent Cloud environment.
- name: List all available clusters in a given environment confluent.cloud.cluster_info: environment: env-f3a90de
- name: List clusters that match the given Ids confluent.cloud.cluster_info: environment: env-f3a90de ids: - lkc-6wkr2 - lkc-310rw
- name: List clusters that match the given Names confluent.cloud.cluster_info: environment: env-f3a90de names: - test - production
ids: description: - List of cluster Ids. - Mutually exclusive when used with `names` elements: str type: list names: description: - List of cluster Names. - Mutually exclusive when used with `ids` elements: str type: list api_key: description: Confluent Cloud API Key required: true type: str api_secret: description: Confluent Cloud API Secret required: true type: str api_retries: default: 5 description: Amount of max retries for the API requests. type: int api_timeout: default: 60 description: Timeout used for the API requests. type: int environment: description: - Environment Id required: true type: str api_endpoint: default: https://api.confluent.cloud description: Endpoint used for the API requests. type: str validate_certs: default: true description: Whether to vaidate API endpoint TLS certs type: bool api_retry_max_delay: default: 12 description: Exponential backoff delay in seconds between retries up to this max delay value. type: int
clusters: contains: id: description: Cluster id returned: success sample: lkc-7yxkd2 type: str metadata: description: Cluster metadata, including create timestamp and updated timestamp returned: success type: dict resource_uri: description: Globally unique URI for resource returned: success sample: crn://confluent.cloud/organization=6830dbfe-5057-4e65-ae2e-f6a090640ec0/environment=env-nvm8yz type: str spec: contains: api_endpoint: description: API endpoint returned: success sample: https://pkac-4nd3z.us-west4.gcp.confluent.cloud type: str availability: description: The availability zone configuration of the cluster returned: success sample: SINGLE_ZONE type: str cloud: description: The cloud service provider in which the cluster is running (AWS, GCP, AZURE) returned: success sample: AWS type: str config: contains: kind: description: The configuration of the Kafka cluster. returned: success sample: Basic type: str description: The configuration of the Kafka cluster. returned: success type: dict display_name: description: The name of the cluster returned: success type: str environment: contains: id: description: Id of the referred resource returned: success sample: env-12m16j type: str description: The environment to which this belongs returned: success type: dict http_endpoint: description: The cluster HTTP request UR returned: success sample: https://pkc-lzvrd.us-west4.gcp.confluent.cloud:443 type: str kafka_bootstrap_endpoint: description: The bootstrap endpoint used by Kafka clients to connect to the cluster returned: success sample: SASL_SSL://pkc-lzvrd.us-west4.gcp.confluent.cloud:9092 type: str network: contains: environment: description: Environment of the referred resource, if env-scoped returned: success type: str id: description: Id of the referred resource returned: success type: str description: The network associated with this object returned: success type: dict region: description: The cloud service provider region where the cluster is running returned: success sample: us-west4 type: str status: contains: cku: description: The number of Confluent Kafka Units (CKUs) the Dedicated cluster currently has returned: success sample: 1 type: int phase: description: - 'The lifecyle phase of the cluster:' - 'PROVISIONED: cluster is provisioned;' - 'PROVISIONING: cluster provisioning is in progress;' - 'FAILED: provisioning failed' returned: success sample: PROVISIONED type: str description: The status of the cluster returned: success type: dict description: Cluster spec returned: success type: dict description: Dictionary of matching clusters, keyed by cluster id returned: success type: dict