Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_assurance_alerts_info.py

raw symbols SCIP
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright (c) 2021, Cisco Systems
5 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r"""
8 module: organizations_assurance_alerts_info
9 short_description: Information module for organizations _assurance _alerts
10 description:
11 - Information module for Organizations Assurance Alerts Info.
12 - Get all organizations _assurance _alerts.
13 - Get organizations _assurance _alerts by id.
14 - Return a singular Health Alert by its id.
15 - Return all health alerts for an organization.
16 version_added: '1.0.0'
17 extends_documentation_fragment:
18 - cisco.meraki.module_info
19 - cisco.meraki.module_info_pagination
20 author: Francisco Munoz (@fmunoz)
21 options:
22 headers:
23 description: Additional headers.
24 type: dict
25 organizationId:
26 description:
27 - Information module for Organizations Assurance Alerts Info.
28 - OrganizationId path parameter. Organization ID.
29 type: str
30 perPage:
31 description:
32 - Information module for Organizations Assurance Alerts Info.
33 - PerPage query parameter. The number of entries per page returned. Acceptable
34 range is 4 - 300. Default is 30.
35 type: int
36 startingAfter:
37 description:
38 - Information module for Organizations Assurance Alerts Info.
39 - >
40 StartingAfter query parameter. A token used by the server to indicate the
41 start of the page. Often this is a timestamp or an ID but it is not limited
42 to those. This parameter should not be defined by client applications. The
43 link for the first, last, prev, or next page in the HTTP Link header should
44 define it.
45 type: str
46 endingBefore:
47 description:
48 - Information module for Organizations Assurance Alerts Info.
49 - >
50 EndingBefore query parameter. A token used by the server to indicate the end
51 of the page. Often this is a timestamp or an ID but it is not limited to those.
52 This parameter should not be defined by client applications. The link for
53 the first, last, prev, or next page in the HTTP Link header should define
54 it.
55 type: str
56 sortOrder:
57 description:
58 - Information module for Organizations Assurance Alerts Info.
59 - >
60 SortOrder query parameter. Sorted order of entries. Order options are 'ascending'
61 and 'descending'. Default is 'ascending'.
62 type: str
63 networkId:
64 description:
65 - Information module for Organizations Assurance Alerts Info.
66 - NetworkId query parameter. Optional parameter to filter alerts by network
67 ids.
68 type: str
69 severity:
70 description:
71 - Information module for Organizations Assurance Alerts Info.
72 - Severity query parameter. Optional parameter to filter by severity type.
73 type: str
74 types:
75 description:
76 - Information module for Organizations Assurance Alerts Info.
77 - Types query parameter. Optional parameter to filter by alert type.
78 elements: str
79 type: list
80 tsStart:
81 description:
82 - Information module for Organizations Assurance Alerts Info.
83 - TsStart query parameter. Optional parameter to filter by starting timestamp.
84 type: str
85 tsEnd:
86 description:
87 - Information module for Organizations Assurance Alerts Info.
88 - TsEnd query parameter. Optional parameter to filter by end timestamp.
89 type: str
90 category:
91 description:
92 - Information module for Organizations Assurance Alerts Info.
93 - Category query parameter. Optional parameter to filter by category.
94 type: str
95 sortBy:
96 description:
97 - Information module for Organizations Assurance Alerts Info.
98 - SortBy query parameter. Optional parameter to set column to sort by.
99 type: str
100 serials:
101 description:
102 - Information module for Organizations Assurance Alerts Info.
103 - Serials query parameter. Optional parameter to filter by primary device serial.
104 elements: str
105 type: list
106 deviceTypes:
107 description:
108 - Information module for Organizations Assurance Alerts Info.
109 - DeviceTypes query parameter. Optional parameter to filter by device types.
110 elements: str
111 type: list
112 deviceTags:
113 description:
114 - Information module for Organizations Assurance Alerts Info.
115 - DeviceTags query parameter. Optional parameter to filter by device tags.
116 elements: str
117 type: list
118 active:
119 description:
120 - Information module for Organizations Assurance Alerts Info.
121 - Active query parameter. Optional parameter to filter by active alerts defaults
122 to true.
123 type: bool
124 dismissed:
125 description:
126 - Information module for Organizations Assurance Alerts Info.
127 - Dismissed query parameter. Optional parameter to filter by dismissed alerts
128 defaults to false.
129 type: bool
130 resolved:
131 description:
132 - Information module for Organizations Assurance Alerts Info.
133 - Resolved query parameter. Optional parameter to filter by resolved alerts
134 defaults to false.
135 type: bool
136 suppressAlertsForOfflineNodes:
137 description:
138 - Information module for Organizations Assurance Alerts Info.
139 - >
140 SuppressAlertsForOfflineNodes query parameter. When set to true the api will
141 only return connectivity alerts for a given device if that device is in an
142 offline state. This only applies to devices. This is ignored when resolved
143 is true. Example If a Switch has a VLan Mismatch and is Unreachable. Only
144 the Unreachable alert will be returned. Defaults to false.
145 type: bool
146 id:
147 description:
148 - Information module for Organizations Assurance Alerts Info.
149 - Id path parameter.
150 type: str
151 requirements:
152 - meraki >= 2.4.9
153 - python >= 3.5
154 seealso:
155 - name: Cisco Meraki documentation for organizations getOrganizationAssuranceAlert
156 description: Complete reference of the getOrganizationAssuranceAlert API.
157 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-assurance-alert
158 - name: Cisco Meraki documentation for organizations getOrganizationAssuranceAlerts
159 description: Complete reference of the getOrganizationAssuranceAlerts API.
160 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-assurance-alerts
161 notes:
162 - SDK Method used are
163 organizations.Organizations.get_organization_assurance_alert,
164 organizations.Organizations.get_organization_assurance_alerts,
165 - Paths used are
166 get /organizations/{organizationId}/assurance/alerts,
167 get /organizations/{organizationId}/assurance/alerts/{id},
168 """
169
170 EXAMPLES = r"""
171 - name: Get all organizations _assurance _alerts
172 cisco.meraki.organizations_assurance_alerts_info:
173 meraki_api_key: "{{ meraki_api_key }}"
174 meraki_base_url: "{{ meraki_base_url }}"
175 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
176 meraki_certificate_path: "{{ meraki_certificate_path }}"
177 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
178 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
179 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
180 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
181 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
182 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
183 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
184 meraki_output_log: "{{ meraki_output_log }}"
185 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
186 meraki_log_path: "{{ meraki_log_path }}"
187 meraki_print_console: "{{ meraki_print_console }}"
188 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
189 meraki_simulate: "{{ meraki_simulate }}"
190 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
191 meraki_caller: "{{ meraki_caller }}"
192 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
193 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
194 perPage: 0
195 startingAfter: string
196 endingBefore: string
197 sortOrder: string
198 networkId: string
199 severity: string
200 types: []
201 tsStart: string
202 tsEnd: string
203 category: string
204 sortBy: string
205 serials: []
206 deviceTypes: []
207 deviceTags: []
208 active: true
209 dismissed: true
210 resolved: true
211 suppressAlertsForOfflineNodes: true
212 organizationId: string
213 total_pages: -1
214 direction: next
215 register: result
216 - name: Get organizations _assurance _alerts by id
217 cisco.meraki.organizations_assurance_alerts_info:
218 meraki_api_key: "{{ meraki_api_key }}"
219 meraki_base_url: "{{ meraki_base_url }}"
220 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
221 meraki_certificate_path: "{{ meraki_certificate_path }}"
222 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
223 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
224 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
225 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
226 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
227 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
228 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
229 meraki_output_log: "{{ meraki_output_log }}"
230 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
231 meraki_log_path: "{{ meraki_log_path }}"
232 meraki_print_console: "{{ meraki_print_console }}"
233 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
234 meraki_simulate: "{{ meraki_simulate }}"
235 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
236 meraki_caller: "{{ meraki_caller }}"
237 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
238 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
239 organizationId: string
240 id: string
241 register: result
242 """
243 RETURN = r"""
244 meraki_response:
245 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
246 returned: always
247 type: dict
248 sample: >
249 {
250 "id": "string",
251 "categoryType": "string",
252 "network": {
253 "name": "string",
254 "id": "string"
255 },
256 "startedAt": "string",
257 "resolvedAt": {},
258 "dismissedAt": {},
259 "deviceType": {},
260 "type": "string",
261 "title": "string",
262 "description": {},
263 "severity": "string",
264 "scope": {
265 "devices": [
266 {
267 "url": "string",
268 "name": "string",
269 "order": 0,
270 "productType": "string",
271 "serial": "string",
272 "mac": "string",
273 "imei": "string",
274 "lldp": {
275 "port": "string"
276 }
277 }
278 ],
279 "applications": [
280 {}
281 ],
282 "peers": [
283 {}
284 ],
285 "others": [
286 {}
287 ]
288 }
289 }
290 """