cloudera.cloud.iam_user_info module – Gather information about CDP Public IAM users
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
.
To use it in a playbook, specify: cloudera.cloud.iam_user_info
.
Synopsis
Gather information about CDP Public IAM users
Parameters
Parameter |
Comments |
---|---|
Specify the Cloudera Data Platform endpoint region. Default: |
|
Flag to use the current user login. Mutually exclusive with Choices:
|
|
Capture the CDP SDK debug log. Choices:
|
|
Key value pair where the key is the field to compare and the value is a regex statement. If there is a match in the regex statment, the user will return. Mutually exclusive with current user and name |
|
A list of user names or CRNs or a single user name/CRN. If no user name or CRN is provided, all users are returned. Mutually exclusive with |
|
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.
# List basic information about all Users
- cloudera.cloud.iam_user_info:
# Gather detailed information about a named User
- cloudera.cloud.iam_info:
name: Example
# Gather detailed information about a named User
- cloudera.cdp.iam_info:
filter:
workloadUsername: my[0-9]{2}_admin.*?'
# Gather detailed information about the current user
- cloudera.cloud.iam_info:
current_user: yes
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |
|
The information about the current or named User or Users Returned: always |
|
Whether the user is an administrator of their CDP account. Returned: on success |
|
The date when this user record was created. Returned: on success Sample: |
|
The CRN of the user. Returned: on success |
|
The user’s email address. Returned: on success |
|
The user’s first name. Returned: on success |
|
The identity provider that the user belongs to. It can be “Cloudera-Default”, “Cloudera-Administration”, or a customer-defined identity provider. Returned: on success |
|
The date of the user’s last interactive login. Returned: when supported Sample: |
|
The user’s last name. Returned: on success |
|
The stable, unique identifier of the user. Returned: on success Sample: |
|
The username used in all the workload clusters of the user. Returned: when supported Sample: |