Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/ome_alert_policies_actions_info.rst

raw
1 .. _ome_alert_policies_actions_info_module:
2
3
4 ome_alert_policies_actions_info -- Get information on actions of alert policies.
5 ================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module retrieves the information on actions of alert policies for OpenManage Enterprise and OpenManage Enterprise Modular.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - python \>= 3.9.6
24
25
26
27 Parameters
28 ----------
29
30 hostname (True, str, None)
31 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
32
33
34 username (False, str, None)
35 OpenManage Enterprise or OpenManage Enterprise Modular username.
36
37 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
38
39 Example: export OME\_USERNAME=username
40
41
42 password (False, str, None)
43 OpenManage Enterprise or OpenManage Enterprise Modular password.
44
45 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
46
47 Example: export OME\_PASSWORD=password
48
49
50 x_auth_token (False, str, None)
51 Authentication token.
52
53 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
54
55 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
56
57
58 port (optional, int, 443)
59 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
60
61
62 validate_certs (optional, bool, True)
63 If \ :literal:`false`\ , the SSL certificates will not be validated.
64
65 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
66
67 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
68
69
70 ca_path (optional, path, None)
71 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
72
73
74 timeout (optional, int, 30)
75 The socket level timeout in seconds.
76
77
78
79
80
81 Notes
82 -----
83
84 .. note::
85 - Run this module from a system that has direct access to Dell OpenManage Enterprise or OpenManage Enterprise Modular.
86 - This module supports both IPv4 and IPv6 addresses.
87 - This module supports \ :literal:`check\_mode`\ .
88
89
90
91
92 Examples
93 --------
94
95 .. code-block:: yaml+jinja
96
97
98 ---
99 - name: Get action details of all alert policies.
100 dellemc.openmanage.ome_alert_policies_actions_info:
101 hostname: "192.168.0.1"
102 username: "username"
103 password: "password"
104 ca_path: "/path/to/ca_cert.pem"
105
106
107
108 Return Values
109 -------------
110
111 actions (success, list, [{'Name': 'Email', 'Description': 'Email', 'Disabled': False, 'ParameterDetails': [{'Id': 1, 'Name': 'subject', 'Value': 'Device Name: $name, Device IP Address: $ip, Severity: $severity', 'Type': 'string', 'TemplateParameterTypeDetails': [{'Name': 'maxLength', 'Value': '255'}]}, {'Id': 2, 'Name': 'to', 'Value': '', 'Type': 'string', 'TemplateParameterTypeDetails': [{'Name': 'maxLength', 'Value': '255'}]}, {'Id': 3, 'Name': 'from', 'Value': '[email protected]', 'Type': 'string', 'TemplateParameterTypeDetails': [{'Name': 'maxLength', 'Value': '255'}]}, {'Id': 4, 'Name': 'message', 'Value': 'Event occurred for Device Name: $name, Device IP Address: $ip, Service Tag: $identifier, UTC Time: $time, Severity: $severity, Message ID: $messageId, $message', 'Type': 'string', 'TemplateParameterTypeDetails': [{'Name': 'maxLength', 'Value': '255'}]}, {'Id': 60, 'Name': 'Trap', 'Description': 'Trap', 'Disabled': False, 'ParameterDetails': [{'Id': 1, 'Name': 'localhost:162', 'Value': 'true', 'Type': 'boolean', 'TemplateParameterTypeDetails': []}]}, {'Id': 90, 'Name': 'Syslog', 'Description': 'Syslog', 'Disabled': False, 'ParameterDetails': [{'Id': 1, 'Name': 'localhost.scomdev.com:555', 'Value': 'true', 'Type': 'boolean', 'TemplateParameterTypeDetails': []}, {'Id': 2, 'Name': 'localhost.scomdev.com:555', 'Value': 'true', 'Type': 'boolean', 'TemplateParameterTypeDetails': []}]}, {'Id': 100, 'Name': 'Ignore', 'Description': 'Ignore', 'Disabled': False, 'ParameterDetails': []}, {'Id': 70, 'Name': 'SMS', 'Description': 'SMS', 'Disabled': False, 'ParameterDetails': [{'Id': 1, 'Name': 'to', 'Value': '', 'Type': 'string', 'TemplateParameterTypeDetails': [{'Name': 'maxLength', 'Value': '255'}]}]}, {'Id': 110, 'Name': 'PowerControl', 'Description': 'Power Control Action Template', 'Disabled': False, 'ParameterDetails': [{'Id': 1, 'Name': 'powercontrolaction', 'Value': 'poweroff', 'Type': 'singleSelect', 'TemplateParameterTypeDetails': [{'Name': 'option', 'Value': 'powercycle'}, {'Name': 'option', 'Value': 'poweroff'}, {'Name': 'option', 'Value': 'poweron'}, {'Name': 'option', 'Value': 'gracefulshutdown'}]}]}, {'Id': 111, 'Name': 'RemoteCommand', 'Description': 'RemoteCommand', 'Disabled': True, 'ParameterDetails': [{'Id': 1, 'Name': 'remotecommandaction', 'Value': None, 'Type': 'singleSelect', 'TemplateParameterTypeDetails': []}]}, {'Id': 112, 'Name': 'Mobile', 'Description': 'Mobile', 'Disabled': False, 'ParameterDetails': []}]}])
112 Returns the alert policies action information collected from the Device.
113
114
115 error_info (on HTTP error, dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'MessageId': 'GEN1234', 'RelatedProperties': [], 'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.'}]}})
116 Details of the HTTP Error.
117
118
119 msg (always, str, Successfully retrieved alert policies actions information.)
120 Status of the alert policies actions fetch operation.
121
122
123
124
125
126 Status
127 ------
128
129
130
131
132
133 Authors
134 ~~~~~~~
135
136 - Kritika Bhateja (@Kritika-Bhateja-03)
137