Debian Codegraph @

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

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