cloudera.cloud.dw_database_catalog module – Create, manage, and destroy 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
.
Synopsis
Create, manage, and destroy 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. Required if |
|
Specify the Cloudera Data Platform endpoint region. Default: |
|
The identifier of the parent DW Cluster of the Database Catalog. |
|
Capture the CDP SDK debug log. Choices:
|
|
The internal polling interval (in seconds) while the module waits for the Data Catalog to achieve the declared state. Default: |
|
Flag to load demonstration data into the Database Catalog during creation. Choices:
|
|
The name of the Database Catalog. Required if |
|
If provided, the CDP SDK will use this value as its profile. |
|
The operational state of the Database Catalog. Choices:
|
|
The internal polling timeout (in seconds) while the module waits for the Data Catalog to achieve the declared state. Default: |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
|
Flag to enable internal polling to wait for the Data Catalog to achieve the declared state. If set to FALSE, the module will return immediately. Choices:
|
Examples
# Note: These examples do not set authentication details.
# Create Database Catalog
- cloudera.cloud.dw_database_catalog:
name: example-database-catalog-name
cluster_id: example-cluster-id
# Delete Database Catalog
- cloudera.cloud.dw_database_catalog:
catalog_id: example-database-id
cluster_id: example-cluster-id
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details about the Database Catalog. 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 |