Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_clients_overview_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_clients_overview_info
9 short_description: Information module for networks _clients _overview
10 description:
11 - Information module for Networks Clients Overview Info.
12 - Get all networks _clients _overview.
13 - Return overview statistics for network clients.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module_info
17 author: Francisco Munoz (@fmunoz)
18 options:
19 headers:
20 description: Additional headers.
21 type: dict
22 networkId:
23 description:
24 - Information module for Networks Clients Overview Info.
25 - NetworkId path parameter. Network ID.
26 type: str
27 t0:
28 description:
29 - Information module for Networks Clients Overview Info.
30 - T0 query parameter. The beginning of the timespan for the data. The maximum
31 lookback period is 31 days from today.
32 type: str
33 t1:
34 description:
35 - Information module for Networks Clients Overview Info.
36 - T1 query parameter. The end of the timespan for the data. T1 can be a maximum
37 of 31 days after t0.
38 type: str
39 timespan:
40 description:
41 - Information module for Networks Clients Overview Info.
42 - >
43 Timespan query parameter. The timespan for which the information will be fetched.
44 If specifying timespan, do not specify parameters t0 and t1. The value must
45 be in seconds and be less than or equal to 31 days. The default is 1 day.
46 type: float
47 resolution:
48 description:
49 - Information module for Networks Clients Overview Info.
50 - >
51 Resolution query parameter. The time resolution in seconds for returned data.
52 The valid resolutions are 7200, 86400, 604800, 2592000. The default is 604800.
53 type: int
54 requirements:
55 - meraki >= 2.4.9
56 - python >= 3.5
57 seealso:
58 - name: Cisco Meraki documentation for networks getNetworkClientsOverview
59 description: Complete reference of the getNetworkClientsOverview API.
60 link: https://developer.cisco.com/meraki/api-v1/#!get-network-clients-overview
61 notes:
62 - SDK Method used are
63 networks.Networks.get_network_clients_overview,
64 - Paths used are
65 get /networks/{networkId}/clients/overview,
66 """
67
68 EXAMPLES = r"""
69 - name: Get all networks _clients _overview
70 cisco.meraki.networks_clients_overview_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 t0: string
93 t1: string
94 timespan: 0
95 resolution: 0
96 networkId: string
97 register: result
98 """
99 RETURN = r"""
100 meraki_response:
101 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
102 returned: always
103 type: dict
104 sample: >
105 {
106 "counts": {
107 "total": 0,
108 "withHeavyUsage": 0
109 },
110 "usages": {
111 "average": 0,
112 "withHeavyUsageAverage": 0
113 }
114 }
115 """