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

catalog_id

aliases: id

string

The identifier of the Database Catalog.

If undefined, will return a list of all Database Catalogs in the Cluster.

Exclusive with name.

cdp_region

aliases: cdp_endpoint_region, endpoint_region

string

Specify the Cloudera Data Platform endpoint region.

Default: "default"

cluster_id

string / required

The identifier of the parent Cluster of the Database Catalog or Catalogs.

debug

aliases: debug_endpoints

boolean

Capture the CDP SDK debug log.

Choices:

  • false ← (default)

  • true

name

string

The name of the Database Catalog.

If undefined, will return a list of all Database Catalogs in the Cluster.

Exclusive with id.

profile

string

If provided, the CDP SDK will use this value as its profile.

verify_endpoint_tls

aliases: endpoint_tls

boolean

Verify the TLS certificates for the CDP endpoint.

Choices:

  • false

  • true ← (default)

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

database_catalogs

list / elements=dictionary

Details about the Database Catalogs.

Returned: always

id

string

The identifier of the Database Catalog.

Returned: always

name

string

The name of the Database Catalog.

Returned: always

status

string

The status of the Database Catalog.

Returned: always

sdk_out

string

Returns the captured CDP SDK log.

Returned: when supported

sdk_out_lines

list / elements=string

Returns a list of each line of the captured CDP SDK log.

Returned: when supported

Authors

  • Webster Mudge (@wmudge)

  • Dan Chaffelson (@chaffelson)

  • Saravanan Raju (@raju-saravanan)