| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
DOCUMENTATION = r""" |
| 8 |
module: networks_alerts_history_info |
| 9 |
short_description: Information module for networks _alerts _history |
| 10 |
description: |
| 11 |
- Information module for Networks Alerts History Info. |
| 12 |
- Get all networks _alerts _history. |
| 13 |
- Return the alert history for this network. |
| 14 |
version_added: '1.0.0' |
| 15 |
extends_documentation_fragment: |
| 16 |
- cisco.meraki.module_info |
| 17 |
- cisco.meraki.module_info_pagination |
| 18 |
author: Francisco Munoz (@fmunoz) |
| 19 |
options: |
| 20 |
headers: |
| 21 |
description: Additional headers. |
| 22 |
type: dict |
| 23 |
networkId: |
| 24 |
description: |
| 25 |
- Information module for Networks Alerts History Info. |
| 26 |
- NetworkId path parameter. Network ID. |
| 27 |
type: str |
| 28 |
perPage: |
| 29 |
description: |
| 30 |
- Information module for Networks Alerts History Info. |
| 31 |
- PerPage query parameter. The number of entries per page returned. Acceptable |
| 32 |
range is 3 - 1000. Default is 100. |
| 33 |
type: int |
| 34 |
startingAfter: |
| 35 |
description: |
| 36 |
- Information module for Networks Alerts History Info. |
| 37 |
- > |
| 38 |
StartingAfter query parameter. A token used by the server to indicate the |
| 39 |
start of the page. Often this is a timestamp or an ID but it is not limited |
| 40 |
to those. This parameter should not be defined by client applications. The |
| 41 |
link for the first, last, prev, or next page in the HTTP Link header should |
| 42 |
define it. |
| 43 |
type: str |
| 44 |
endingBefore: |
| 45 |
description: |
| 46 |
- Information module for Networks Alerts History Info. |
| 47 |
- > |
| 48 |
EndingBefore query parameter. A token used by the server to indicate the end |
| 49 |
of the page. Often this is a timestamp or an ID but it is not limited to those. |
| 50 |
This parameter should not be defined by client applications. The link for |
| 51 |
the first, last, prev, or next page in the HTTP Link header should define |
| 52 |
it. |
| 53 |
type: str |
| 54 |
requirements: |
| 55 |
- meraki >= 2.4.9 |
| 56 |
- python >= 3.5 |
| 57 |
seealso: |
| 58 |
- name: Cisco Meraki documentation for networks getNetworkAlertsHistory |
| 59 |
description: Complete reference of the getNetworkAlertsHistory API. |
| 60 |
link: https://developer.cisco.com/meraki/api-v1/#!get-network-alerts-history |
| 61 |
notes: |
| 62 |
- SDK Method used are |
| 63 |
networks.Networks.get_network_alerts_history, |
| 64 |
- Paths used are |
| 65 |
get /networks/{networkId}/alerts/history, |
| 66 |
""" |
| 67 |
|
| 68 |
EXAMPLES = r""" |
| 69 |
- name: Get all networks _alerts _history |
| 70 |
cisco.meraki.networks_alerts_history_info: |
| 71 |
meraki_api_key: "{{ meraki_api_key }}" |
| 72 |
meraki_base_url: "{{ meraki_base_url }}" |
| 73 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 74 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 75 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 76 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 77 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 78 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 79 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 80 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 81 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 82 |
meraki_output_log: "{{ meraki_output_log }}" |
| 83 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 84 |
meraki_log_path: "{{ meraki_log_path }}" |
| 85 |
meraki_print_console: "{{ meraki_print_console }}" |
| 86 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 87 |
meraki_simulate: "{{ meraki_simulate }}" |
| 88 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 89 |
meraki_caller: "{{ meraki_caller }}" |
| 90 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 91 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 92 |
perPage: 0 |
| 93 |
startingAfter: string |
| 94 |
endingBefore: string |
| 95 |
networkId: string |
| 96 |
total_pages: -1 |
| 97 |
direction: next |
| 98 |
register: result |
| 99 |
""" |
| 100 |
RETURN = r""" |
| 101 |
meraki_response: |
| 102 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 103 |
returned: always |
| 104 |
type: list |
| 105 |
elements: dict |
| 106 |
sample: > |
| 107 |
[ |
| 108 |
{ |
| 109 |
"occurredAt": "string", |
| 110 |
"alertTypeId": "string", |
| 111 |
"alertType": "string", |
| 112 |
"device": { |
| 113 |
"serial": "string" |
| 114 |
}, |
| 115 |
"destinations": { |
| 116 |
"email": { |
| 117 |
"sentAt": "string" |
| 118 |
}, |
| 119 |
"push": { |
| 120 |
"sentAt": "string" |
| 121 |
}, |
| 122 |
"sms": { |
| 123 |
"sentAt": "string" |
| 124 |
}, |
| 125 |
"webhook": { |
| 126 |
"sentAt": "string" |
| 127 |
} |
| 128 |
}, |
| 129 |
"alertData": {} |
| 130 |
} |
| 131 |
] |
| 132 |
""" |