ryan_gordon1 / ryan_gordon1.cloud_pak_for_security / 1.1.0 / module / cp4s_trigger_action A Module used to trigger an Action on a CP4S Case | "added in version" 1.0.0 of ryan_gordon1.cloud_pak_for_security" Authors: Ryan Gordon (@Ryan-Gordon)ryan_gordon1.cloud_pak_for_security.cp4s_trigger_action (1.1.0) — module
Install with ansible-galaxy collection install ryan_gordon1.cloud_pak_for_security:==1.1.0
collections: - name: ryan_gordon1.cloud_pak_for_security version: 1.1.0
This module is an example of how you can choose to use a module or a role to achieve a similar outcome. An almost identical piece of functionality exists in the CP4S role but this gives a programmatic way to do it.
# Invoke the action with ID 42 on the Case with ID 2095 - name: Test creation of a Case with a name ryan_gordon1.cloud_pak_for_security.cp4s_trigger_action: case_id: 2095 action_id: 42
case_id: description: This is the ID number of the Case to be closed. required: true type: int action_id: description: This is the ID number of the Action to be invoked. required: true type: int
message: description: The output message that the test module generates. returned: always sample: goodbye type: str original_message: description: The original name param that was passed in. returned: always sample: hello world type: str