cloudera.cloud.env_user_sync_info module – Get the status of a CDP Users and Groups sync

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. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: cloudera.cloud.env_user_sync_info.

Synopsis

  • Get the status of a synchronization event for users and groups with one or more CDP environments.

  • The module support check_mode.

Requirements

The below requirements are needed on the host that executes this module.

  • cdpy

Parameters

Parameter

Comments

cdp_region

aliases: cdp_endpoint_region, endpoint_region

string

Specify the Cloudera Data Platform endpoint region.

Default: "default"

debug

aliases: debug_endpoints

boolean

Capture the CDP SDK debug log.

Choices:

  • false ← (default)

  • true

name

aliases: operations_id, operations_crn

string / required

The operations id for a User and Group sync event or the operations CRN for the event if the WORKLOAD_IAM_SYNC entitlement is enabled

profile

string

If provided, the CDP SDK will use this value as its profile.

verify_endpoint_tls

aliases: endpoint_tls

boolean

Verify the TLS certificates for the CDP endpoint.

Choices:

  • false

  • true ← (default)

Examples

# Note: These examples do not set authentication details.

# Get the status of a sync event (non-WORKLOAD_IAM_SYNC)
- cloudera.cloud.env_user_sync_info:
    name: 0e9bc67a-b308-4275-935c-b8c764dc13be

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

sdk_out

string

Returns the captured CDP SDK log.

Returned: when supported

sdk_out_lines

list / elements=string

Returns a list of each line of the captured CDP SDK log.

Returned: when supported

sync

complex

Returns an object describing of the status of the User and Group sync event.

Returned: success

endTime

string

Sync operation end timestamp (epoch seconds).

Returned: when supported

Sample: "1602080301000"

error

string

Error message for general failure of sync operation.

Returned: when supported

failure

list / elements=dictionary

List of sync operation details for all failed environments.

Returned: when supported

environmentCrn

string

The environment CRN.

Returned: always

message

string

Details on the failure.

Returned: when supported

operationId

string

UUID (or CRN, if running with the WORKLOAD_IAM_SYNC entitlement) of the request for this operation.

Returned: always

Sample: "0e9bc67a-b308-4275-935c-b8c764dc13be"

operationType

string

The operation type.

Returned: when supported

Sample: "USER_SYNC"

startTime

string

Sync operation start timestamp (epoch seconds).

Returned: when supported

Sample: "1602080301000"

status

string

Status of this operation.

Returned: when supported

Sample: "['NEVER_RUN', 'REQUESTED', 'REJECTED', 'RUNNING', 'COMPLETED', 'FAILED', 'TIMEDOUT']"

success

list / elements=dictionary

List of sync operation details for all succeeded environments.

Returned: when supported

environmentCrn

string

The environment CRN.

Returned: always

message

string

Details on the success.

Returned: when supported

Authors

  • Webster Mudge (@wmudge)

  • Daniel Chaffelson (@chaffelson)