| 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_clients_overview_info |
| 9 |
short_description: Information module for organizations _clients _overview |
| 10 |
description: |
| 11 |
- Information module for Organizations Clients Overview Info. |
| 12 |
- Get all organizations _clients _overview. |
| 13 |
- Return summary information around client data usage in kb across the given organization. |
| 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 |
organizationId: |
| 23 |
description: |
| 24 |
- Information module for Organizations Clients Overview Info. |
| 25 |
- OrganizationId path parameter. Organization ID. |
| 26 |
type: str |
| 27 |
t0: |
| 28 |
description: |
| 29 |
- Information module for Organizations Clients Overview Info. |
| 30 |
- T0 query parameter. The beginning of the timespan for the data. |
| 31 |
type: str |
| 32 |
t1: |
| 33 |
description: |
| 34 |
- Information module for Organizations Clients Overview Info. |
| 35 |
- T1 query parameter. The end of the timespan for the data. T1 can be a maximum |
| 36 |
of 31 days after t0. |
| 37 |
type: str |
| 38 |
timespan: |
| 39 |
description: |
| 40 |
- Information module for Organizations Clients Overview Info. |
| 41 |
- > |
| 42 |
Timespan query parameter. The timespan for which the information will be fetched. |
| 43 |
If specifying timespan, do not specify parameters t0 and t1. The value must |
| 44 |
be in seconds and be less than or equal to 31 days. The default is 1 day. |
| 45 |
type: float |
| 46 |
requirements: |
| 47 |
- meraki >= 2.4.9 |
| 48 |
- python >= 3.5 |
| 49 |
seealso: |
| 50 |
- name: Cisco Meraki documentation for organizations getOrganizationClientsOverview |
| 51 |
description: Complete reference of the getOrganizationClientsOverview API. |
| 52 |
link: https://developer.cisco.com/meraki/api-v1/#!get-organization-clients-overview |
| 53 |
notes: |
| 54 |
- SDK Method used are |
| 55 |
organizations.Organizations.get_organization_clients_overview, |
| 56 |
- Paths used are |
| 57 |
get /organizations/{organizationId}/clients/overview, |
| 58 |
""" |
| 59 |
|
| 60 |
EXAMPLES = r""" |
| 61 |
- name: Get all organizations _clients _overview |
| 62 |
cisco.meraki.organizations_clients_overview_info: |
| 63 |
meraki_api_key: "{{ meraki_api_key }}" |
| 64 |
meraki_base_url: "{{ meraki_base_url }}" |
| 65 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 66 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 67 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 68 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 69 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 70 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 71 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 72 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 73 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 74 |
meraki_output_log: "{{ meraki_output_log }}" |
| 75 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 76 |
meraki_log_path: "{{ meraki_log_path }}" |
| 77 |
meraki_print_console: "{{ meraki_print_console }}" |
| 78 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 79 |
meraki_simulate: "{{ meraki_simulate }}" |
| 80 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 81 |
meraki_caller: "{{ meraki_caller }}" |
| 82 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 83 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 84 |
t0: string |
| 85 |
t1: string |
| 86 |
timespan: 0 |
| 87 |
organizationId: string |
| 88 |
register: result |
| 89 |
""" |
| 90 |
RETURN = r""" |
| 91 |
meraki_response: |
| 92 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 93 |
returned: always |
| 94 |
type: dict |
| 95 |
sample: > |
| 96 |
{ |
| 97 |
"usage": { |
| 98 |
"overall": { |
| 99 |
"total": 0, |
| 100 |
"downstream": 0, |
| 101 |
"upstream": 0 |
| 102 |
}, |
| 103 |
"average": 0 |
| 104 |
}, |
| 105 |
"counts": { |
| 106 |
"total": 0 |
| 107 |
} |
| 108 |
} |
| 109 |
""" |