cloudera.cloud.iam_user_info module – Gather information about CDP Public IAM users
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.iam_user_info.
New in cloudera.cloud 1.0.0
Synopsis
Gather information about CDP Public IAM users
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 |
|
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 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:
|
|
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 |
|
The HTTP user agent to use for Cloudera on cloud API requests. Default: |
|
A list of user names or a single user name. If no user name is provided, all users are returned. Mutually exclusive with |
|
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: |
|
Legacy CDPy SDK error handling. Choices:
|
|
A list of user Ids or a single user Id name/CRN. Mutually exclusive with |
|
The level of detail returned for each user.
Choices:
|
Examples
# Note: These examples do not set authentication details.
# List basic information about all Users
- cloudera.cloud.iam_user_info:
view: summary
# Gather detailed information about a named User
- cloudera.cloud.iam_user_info:
name: Example
# Gather detailed information specific user Id
- cloudera.cloud.iam_user_info:
user_id: "11a111a-91f0-4ca2-9262-111aa1111"
# Gather detailed information about more users
- cloudera.cloud.iam_user_info:
filter:
workloadUsername: my[0-9]{2}_admin.*?'
# Gather detailed information about the current user
- cloudera.cloud.iam_user_info:
current_user: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Returns the captured API HTTP log. Returned: when supported |
|
Returns a list of each line of the captured API HTTP 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 |
|
List of groups that user is assigned. Returned: when supported |
|
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 |
|
List of resource role assignments associated with the user. Returned: when supported |
|
The CRN of the resource granted the rights of the role. Returned: when supported |
|
The CRN of the resource role. Returned: when supported |
|
List of user assigned roles. Returned: when supported |
|
The current status of the user. Returned: when supported |
|
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: |