cloudera.cloud.dw_database_catalog_info module – Gather information about CDP Data Warehouse Database Catalogs
Note
This module is part of the cloudera.cloud collection (version 2.5.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cloudera.cloud
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cloudera.cloud.dw_database_catalog_info
.
Synopsis
Gather information about CDP Data Warehouse Database Catalogs
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
The identifier of the Database Catalog. If undefined, will return a list of all Database Catalogs in the Cluster. Exclusive with name. |
|
Specify the Cloudera Data Platform endpoint region. Default: |
|
The identifier of the parent Cluster of the Database Catalog or Catalogs. |
|
Capture the CDP SDK debug log. Choices:
|
|
The name of the Database Catalog. If undefined, will return a list of all Database Catalogs in the Cluster. Exclusive with id. |
|
If provided, the CDP SDK will use this value as its profile. |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
Examples
# Note: These examples do not set authentication details.
# Get a single Database Catalog
- cloudera.cloud.dw_database_catalog_info:
name: example-database-catalog-name
cluster_id: example-cluster-id
# Get all Database Catalogs within a Cluster
- cloudera.cloud.dw_database_catalog_info:
cluster_id: example-cluster-id
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details about the Database Catalogs. Returned: always |
|
The identifier of the Database Catalog. Returned: always |
|
The name of the Database Catalog. Returned: always |
|
The status of the Database Catalog. Returned: always |
|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |