thalesgroup / thalesgroup.ciphertrust / 1.0.0 / module / cm_resource_get_id_from_name Get CipherTrust Manager resource ID from resource name | "added in version" 1.0.0 of thalesgroup.ciphertrust" Authors: Anurag Jain, Developer Advocate Thales Groupthalesgroup.ciphertrust.cm_resource_get_id_from_name (1.0.0) — module
Install with ansible-galaxy collection install thalesgroup.ciphertrust:==1.0.0
collections: - name: thalesgroup.ciphertrust version: 1.0.0
This is a Thales CipherTrust Manager module for working with the CipherTrust Manager APIs, more specifically List API with some filter.
- name: "Get Key ID" thalesgroup.ciphertrust.cm_resource_get_id_from_name: 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 query_param: "name" query_param_value: "AnsibleKey" resource_type: "keys"
localNode: description: - 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 required: true suboptions: password: description: admin password of CM required: true type: str server_ip: description: CM Server IP or FQDN required: true type: str server_port: default: 5432 description: Port on which CM server is listening required: true type: int server_private_ip: description: internal or private IP of the CM Server, if different from the server_ip required: true type: str user: description: admin username of CM required: true type: str verify: default: false description: if SSL verification is required required: true type: bool type: dict query_param: choices: - name - username - email - status description: - This is a string type of option that holds the query parameter type to be used to filter the list resources API response required: true type: str resource_type: choices: - keys - protection-policies - access-policies - user-sets - interfaces - character-sets - users - dpg-policies - client-profiles - masking-formats description: - This is a string type of option that can hold the resource type. required: true type: str query_param_value: description: - This is a string type of option that will hold the value of filter query parameter required: true type: str
id: description: String with the ID returned by the CipherTrust Manager returned: changed or success sample: 123456789 type: string