cloudera.cloud.df_customflow module – Import or Delete CustomFlows into the DataFlow Catalog
Note
This module is part of the cloudera.cloud collection (version 3.3.0).
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.
To use it in a playbook, specify: cloudera.cloud.df_customflow.
New in cloudera.cloud 2.0.0
Synopsis
Import or Delete CustomFlows into the DataFlow Catalog
Parameters
Parameter |
Comments |
|---|---|
If provided, the Cloudera on cloud API will use this value as its access key. If not provided, the API will attempt to use the value from the environment variable Required if Mutually exclusive with |
|
The CRN of the collection into which the flow definition will be imported. If unspecified, the flow will not be assigned to a collection. Default: |
|
Comments associated to the initial version of the CustomFlow. Default: |
|
The CustomFlow definition content as a string (JSON format). Mutually exclusive with Default: |
|
If provided, the Cloudera on cloud API will use this value as its credentials path. If not provided, the API will attempt to use the value from the environment variable Default: |
|
If Choices:
|
|
The description of the CustomFlow. Default: |
|
The Cloudera on cloud API endpoint to use. If not provided, the API will attempt to use the value from the environment variable Mutually exclusive with |
|
Specify the Cloudera on cloud API endpoint region. See Cloudera Control Plane regions for more information. If not provided, the API will attempt to use the value from the environment variable
Mutually exclusive with Choices:
|
|
Verify the TLS certificates for the Cloudera on cloud API endpoint. Choices:
|
|
The path to the JSON file containing the CustomFlow definition to be imported from the controller. Mutually exclusive with Default: |
|
The HTTP user agent to use for Cloudera on cloud API requests. Default: |
|
The name of the CustomFlow to be acted upon. |
|
If provided, the Cloudera on cloud API will use this value as its private key. If not provided, the API will attempt to use the value from the environment variable Required if |
|
If provided, the Cloudera on cloud API will use this value as its profile. If not provided, the API will attempt to use the value from the environment variable Default: |
|
The declarative state of the CustomFlow Choices:
|
|
Legacy CDPy SDK error handling. Choices:
|
|
The list of tags for the initial flow definition version. Each tag should have a |
|
The color of the version tag. |
|
The name of the version tag. |
Examples
# Note: These examples do not set authentication details.
# Import a CustomFlow into the DataFlow Catalog from a file
- cloudera.cloud.df_customflow:
name: my-customflow-name
file: /tmp/my-custom-flow.json
description: My sample CDF flow
comments: Initial version
# Import a CustomFlow with content from a template/lookup
- cloudera.cloud.df_customflow:
name: my-customflow-name
content: "{{ lookup('file', 'my-flow.json') }}"
description: My sample CDF flow
comments: Initial version
# Import a CustomFlow into the DataFlow Catalog with collection assignment
- cloudera.cloud.df_customflow:
name: my-customflow-name
file: /tmp/my-custom-flow2.json
collection_crn: crn:cdp:df:us-west-1:tenant:collection:col-123
# Import a CustomFlow with tags
- cloudera.cloud.df_customflow:
name: my-customflow-name
file: /tmp/my-custom-flow3.json
description: My tagged flow
comments: Initial version with tags
tags:
- tag_name: production
tag_color: blue
- tag_name: stable
tag_color: green
# Delete a CustomFlow from the DataFlow Catalog
- cloudera.cloud.df_customflow:
name: my-customflow-name
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The CustomFlow Definition Returned: when supported |
|
The timestamp the entry was created. Returned: always |
|
The DataFlow CustomFlow’s CRN. Use this Returned: always |
|
The flow description. Returned: when available |
|
The timestamp the entry was last modified. Returned: always |
|
The DataFlow CustomFlow’s name. Returned: always |
|
Number of versions contained in this CustomFlow. Returned: always |
|
The list of artifactDetail versions. Returned: always |
|
The author of the artifact. Returned: always |
|
The bucketIdentifier of the flow. Returned: always |
|
The artifact version CRN. Returned: always |
|
The number of deployments of the artifact. Returned: always |
|
The timestamp of the artifact. Returned: always |
|
The version of the artifact. 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 |