| 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_api_requests_overview_info |
| 9 |
short_description: Information module for organizations _apirequests _overview |
| 10 |
description: |
| 11 |
- Information module for Organizations Apirequests Overview Info. |
| 12 |
- Get all organizations _apirequests _overview. |
| 13 |
- Return an aggregated overview of API requests data. |
| 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 Apirequests Overview Info. |
| 25 |
- OrganizationId path parameter. Organization ID. |
| 26 |
type: str |
| 27 |
t0: |
| 28 |
description: |
| 29 |
- Information module for Organizations Apirequests 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 Organizations Apirequests 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 Organizations Apirequests 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 31 days. |
| 46 |
type: float |
| 47 |
requirements: |
| 48 |
- meraki >= 2.4.9 |
| 49 |
- python >= 3.5 |
| 50 |
seealso: |
| 51 |
- name: Cisco Meraki documentation for organizations getOrganizationApiRequestsOverview |
| 52 |
description: Complete reference of the getOrganizationApiRequestsOverview API. |
| 53 |
link: https://developer.cisco.com/meraki/api-v1/#!get-organization-api-requests-overview |
| 54 |
notes: |
| 55 |
- SDK Method used are |
| 56 |
organizations.Organizations.get_organization_api_requests_overview, |
| 57 |
- Paths used are |
| 58 |
get /organizations/{organizationId}/apiRequests/overview, |
| 59 |
""" |
| 60 |
|
| 61 |
EXAMPLES = r""" |
| 62 |
- name: Get all organizations _apirequests _overview |
| 63 |
cisco.meraki.organizations_api_requests_overview_info: |
| 64 |
meraki_api_key: "{{ meraki_api_key }}" |
| 65 |
meraki_base_url: "{{ meraki_base_url }}" |
| 66 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 67 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 68 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 69 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 70 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 71 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 72 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 73 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 74 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 75 |
meraki_output_log: "{{ meraki_output_log }}" |
| 76 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 77 |
meraki_log_path: "{{ meraki_log_path }}" |
| 78 |
meraki_print_console: "{{ meraki_print_console }}" |
| 79 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 80 |
meraki_simulate: "{{ meraki_simulate }}" |
| 81 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 82 |
meraki_caller: "{{ meraki_caller }}" |
| 83 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 84 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 85 |
t0: string |
| 86 |
t1: string |
| 87 |
timespan: 0 |
| 88 |
organizationId: string |
| 89 |
register: result |
| 90 |
""" |
| 91 |
RETURN = r""" |
| 92 |
meraki_response: |
| 93 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 94 |
returned: always |
| 95 |
type: dict |
| 96 |
sample: > |
| 97 |
{ |
| 98 |
"200": 0, |
| 99 |
"201": 0, |
| 100 |
"202": 0, |
| 101 |
"203": 0, |
| 102 |
"204": 0, |
| 103 |
"205": 0, |
| 104 |
"206": 0, |
| 105 |
"207": 0, |
| 106 |
"208": 0, |
| 107 |
"226": 0, |
| 108 |
"300": 0, |
| 109 |
"301": 0, |
| 110 |
"302": 0, |
| 111 |
"303": 0, |
| 112 |
"304": 0, |
| 113 |
"305": 0, |
| 114 |
"306": 0, |
| 115 |
"307": 0, |
| 116 |
"308": 0, |
| 117 |
"400": 0, |
| 118 |
"401": 0, |
| 119 |
"402": 0, |
| 120 |
"403": 0, |
| 121 |
"404": 0, |
| 122 |
"405": 0, |
| 123 |
"406": 0, |
| 124 |
"407": 0, |
| 125 |
"408": 0, |
| 126 |
"409": 0, |
| 127 |
"410": 0, |
| 128 |
"411": 0, |
| 129 |
"412": 0, |
| 130 |
"413": 0, |
| 131 |
"414": 0, |
| 132 |
"415": 0, |
| 133 |
"416": 0, |
| 134 |
"417": 0, |
| 135 |
"421": 0, |
| 136 |
"422": 0, |
| 137 |
"423": 0, |
| 138 |
"424": 0, |
| 139 |
"425": 0, |
| 140 |
"426": 0, |
| 141 |
"428": 0, |
| 142 |
"429": 0, |
| 143 |
"431": 0, |
| 144 |
"451": 0, |
| 145 |
"500": 0 |
| 146 |
} |
| 147 |
""" |