thalesgroup.ciphertrust.dpg_masking_format_save module – Manage masking formats for DPG
Note
This module is part of the thalesgroup.ciphertrust collection (version 1.0.2).
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 thalesgroup.ciphertrust
.
To use it in a playbook, specify: thalesgroup.ciphertrust.dpg_masking_format_save
.
New in thalesgroup.ciphertrust 1.0.0
Synopsis
This is a Thales CipherTrust Manager module for working with the CipherTrust Manager APIs, more specifically with DPG Masking Format API
Refer https://thalesdocs.com/ctp/con/dpg/latest/admin/index.html for API documentation
Parameters
Parameter |
Comments |
---|---|
Number of ending characters to be masked |
|
this holds the connection parameters required to communicate with an instance of CipherTrust Manager (CM) holds IP/FQDN of the server, username, password, and port |
|
user’s domain path |
|
admin password of CM |
|
CM Server IP or FQDN |
|
Port on which CM server is listening |
|
internal or private IP of the CM Server, if different from the server_ip |
|
admin username of CM |
|
if SSL verification is required Choices:
|
|
Character used for masking |
|
Identifier of the Masking Format to be patched |
|
Unique name for the masking format |
|
Operation to be performed Choices:
|
|
Flag to show/hide the starting/ending characters while revealing the data Choices:
|
|
Number of starting characters to be masked |
Examples
- name: "Create Masking Format"
thalesgroup.ciphertrust.dpg_masking_format_save:
localNode:
server_ip: "IP/FQDN of CipherTrust Manager"
server_private_ip: "Private IP in case that is different from above"
server_port: 5432
user: "CipherTrust Manager Username"
password: "CipherTrust Manager Password"
verify: false
auth_domain_path:
op_type: create
name: AnsibleIntegrationTest_MaskingFormat
ending_characters: 2
mask_char: X
show: true
starting_characters: 4
- name: "Patch Masking Format"
thalesgroup.ciphertrust.dpg_masking_format_save:
localNode:
server_ip: "IP/FQDN of CipherTrust Manager"
server_private_ip: "Private IP in case that is different from above"
server_port: 5432
user: "CipherTrust Manager Username"
password: "CipherTrust Manager Password"
verify: false
auth_domain_path:
op_type: patch
masking_format_id: <MaskingFormatID>
ending_characters: 4
mask_char: O
starting_characters: 2
- name: "Delete Masking Format ID"
thalesgroup.ciphertrust.cm_resource_delete:
key: <MaskingFormatID>
resource_type: "masking-formats"
localNode:
server_ip: "IP/FQDN of CipherTrust Manager"
server_private_ip: "Private IP in case that is different from above"
server_port: 5432
user: "CipherTrust Manager Username"
password: "CipherTrust Manager Password"
verify: false
auth_domain_path: