Debian Codegraph @

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

raw
1 .. _ome_alert_policies_info_module:
2
3
4 ome_alert_policies_info -- Retrieves information of one or more OME alert policies.
5 ===================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module retrieves the information of alert policies for OpenManage Enterprise and OpenManage Enterprise Modular.
16
17 A list of information about a specific OME alert policy using the policy name.
18
19 A list of all the OME alert policies with their information when the policy name is not provided.
20
21
22
23 Requirements
24 ------------
25 The below requirements are needed on the host that executes this module.
26
27 - python \>= 3.9.6
28
29
30
31 Parameters
32 ----------
33
34 policy_name (optional, str, None)
35 Name of the policy.
36
37
38 hostname (True, str, None)
39 OpenManage Enterprise or OpenManage Enterprise Modular IP address or hostname.
40
41
42 username (False, str, None)
43 OpenManage Enterprise or OpenManage Enterprise Modular username.
44
45 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
46
47 Example: export OME\_USERNAME=username
48
49
50 password (False, str, None)
51 OpenManage Enterprise or OpenManage Enterprise Modular password.
52
53 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
54
55 Example: export OME\_PASSWORD=password
56
57
58 x_auth_token (False, str, None)
59 Authentication token.
60
61 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
62
63 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
64
65
66 port (optional, int, 443)
67 OpenManage Enterprise or OpenManage Enterprise Modular HTTPS port.
68
69
70 validate_certs (optional, bool, True)
71 If \ :literal:`false`\ , the SSL certificates will not be validated.
72
73 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
74
75 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
76
77
78 ca_path (optional, path, None)
79 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
80
81
82 timeout (optional, int, 30)
83 The socket level timeout in seconds.
84
85
86
87
88
89 Notes
90 -----
91
92 .. note::
93 - Run this module from a system that has direct access to Dell OpenManage Enterprise or OpenManage Enterprise Modular.
94 - This module supports both IPv4 and IPv6 addresses.
95 - This module supports \ :literal:`check\_mode`\ .
96
97
98
99
100 Examples
101 --------
102
103 .. code-block:: yaml+jinja
104
105
106 ---
107 - name: Retrieve information about all OME alert policies.
108 dellemc.openmanage.ome_alert_policies_info:
109 hostname: "192.168.0.1"
110 username: "username"
111 password: "password"
112 ca_path: "/path/to/ca_cert.pem"
113
114 - name: Retrieve information about a specific OME alert policy using the policy name.
115 dellemc.openmanage.ome_alert_policies_info:
116 hostname: "192.168.0.1"
117 username: "username"
118 password: "password"
119 ca_path: "/path/to/ca_cert.pem"
120 policy_name: "Mobile Push Notification - Critical Alerts"
121
122
123
124 Return Values
125 -------------
126
127 msg (always, str, Successfully retrieved all the OME alert policies information.)
128 Status of the alert policies info fetch operation.
129
130
131 policies (success, list, [{'Id': 10006, 'Name': 'Mobile Push Notification - Critical Alerts', 'Description': 'This policy is applicable to critical alerts. Associated actions will be taken when a critical alert is received.', 'Enabled': True, 'DefaultPolicy': True, 'PolicyData': {'Catalogs': [], 'Severities': [16], 'MessageIds': [], 'Devices': [], 'DeviceTypes': [], 'Groups': [], 'AllTargets': False, 'Schedule': {'StartTime': None, 'EndTime': None, 'CronString': None, 'Interval': False}, 'Actions': [{'Id': 5, 'Name': 'Mobile', 'ParameterDetails': [], 'TemplateId': 112}], 'UndiscoveredTargets': []}, 'State': True, 'Visible': True, 'Owner': None}])
132 Retrieve information about all the OME alert policies.
133
134
135 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.'}]}})
136 Details of the HTTP Error.
137
138
139
140
141
142 Status
143 ------
144
145
146
147
148
149 Authors
150 ~~~~~~~
151
152 - Abhishek Sinha(@ABHISHEK-SINHA10)
153