cloudera.cluster.external_account_info module – Retrieve external account details details.
Note
This module is part of the cloudera.cluster collection (version 5.0.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.cluster
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cloudera.cluster.external_account_info
.
New in cloudera.cluster 5.0.0
Synopsis
Provides details for a specific account or retrieves all external accounts configured in Cloudera Manager.
Requirements
The below requirements are needed on the host that executes this module.
cm-client
Parameters
Parameter |
Comments |
---|---|
Set the HTTP user agent header when interacting with the CM API endpoint. Default: |
|
Capture the HTTP interaction logs with the CM API endpoint. Choices:
|
|
Flag to force TLS during CM API endpoint discovery. If Choices:
|
|
Hostname of the CM API endpoint. If set, the Mutually exclusive with url. |
|
Message to log for any changes to the entity. Default: |
|
The initial name of the account. |
|
Password for access to the CM API endpoint. This parameter is set to |
|
Port of the CM API endpoint. If set, CM API endpoint discovery will connect to the designated port first and will follow redirects. Default: |
|
Set the HTTP/S proxy server when interacting with the CM API endpoint. |
|
Path to SSL CA certificate to use for validation. |
|
The type of the external account. Choices:
|
|
The CM API endpoint URL and should include scheme, host, port, and API root path. Mutually exclusive with host. |
|
Username for access to the CM API endpoint. |
|
Verify the TLS certificates for the CM API endpoint. Choices:
|
|
API version of the CM API endpoint. Default: |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in check_mode and return changed status prediction without modifying target, if not supported the action will be skipped. |
|
Support: full |
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
|
Platforms: all |
Target OS/families that can be operated against |
Examples
- name: Get all external accounts in Cloudera Manager
cloudera.cluster.external_account_info:
host: example.cloudera.com
port: "7180"
username: "jane_smith"
password: "S&peR4Ec*re"
- name: Get all external accounts with type "AWS_ACCESS_KEY_AUTH"
cloudera.cluster.external_account_info:
host: example.cloudera.com
port: "7180"
username: "jane_smith"
password: "S&peR4Ec*re"
type: "AWS_ACCESS_KEY_AUTH"
- name: Get specific external account
cloudera.cluster.external_account_info:
host: example.cloudera.com
port: "7180"
username: "jane_smith"
password: "S&peR4Ec*re"
name: "aws_test_key"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
List of one or more external accounts within the cluster. Returned: always |
|
The configuration options for this account. Returned: always |
|
The time of creation for this account. Returned: always |
|
A modifiable label to identify this account for user-visible purposes. Returned: always |
|
The last modification time for this account. Returned: always |
|
Represents the initial name of the account. Returned: always |
|
The Type ID of a supported external account type. Returned: always |