cloudera.cloud.iam_role_info module – Gather information about CDP Public IAM roles
Note
This module is part of the cloudera.cloud collection (version 3.1.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_role_info.
New in cloudera.cloud 3.0.0
Synopsis
Gathers information about CDP Public IAM role or roles
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. 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 HTTP user agent to use for Cloudera on cloud API requests. Default: |
|
A list of Role CRNs or a single role’s CRN. If no CRNs are provided, all Roles are returned. |
|
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:
|
Examples
# Note: These examples do not set authentication details.
- name: Retrieve the details about all roles
cloudera.cloud.iam_role_info:
- name: Gather information about a specific role
cloudera.cloud.iam_role_info:
name: crn:iam:us-east-1:cm:role:ClassicClustersCreator
- name: Gather information about specific roles
cloudera.cloud.iam_role_info:
name:
- crn:iam:us-east-1:cm:role:ClassicClustersCreator
- crn:iam:us-east-1:cm:role:DFCatalogAdmin
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Retrieve details about selected IAM Role or Roles Returned: always |
|
The CRN of the IAM role. Returned: always |
|
List of policy rights assigned to the role. Returned: always |
|
Returns the captured API HTTP log. Returned: when supported |
|
Returns a list of each line of the captured API HTTP log. Returned: when supported |