ryan_gordon1.cloud_pak_for_security.cp4s_trigger_action (1.1.0) — module

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)

Install collection

Install with ansible-galaxy collection install ryan_gordon1.cloud_pak_for_security:==1.1.0


Add to requirements.yml

  collections:
    - name: ryan_gordon1.cloud_pak_for_security
      version: 1.1.0

Description

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.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# 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

Inputs

    
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

Outputs

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