Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_webhooks_logs_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: organizations_webhooks_logs_info
9 short_description: Information module for organizations _webhooks _logs
10 description:
11 - Information module for Organizations Webhooks Logs Info.
12 - Get all organizations _webhooks _logs.
13 - Return the log of webhook POSTs sent.
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 organizationId:
24 description:
25 - Information module for Organizations Webhooks Logs Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 t0:
29 description:
30 - Information module for Organizations Webhooks Logs Info.
31 - T0 query parameter. The beginning of the timespan for the data. The maximum
32 lookback period is 90 days from today.
33 type: str
34 t1:
35 description:
36 - Information module for Organizations Webhooks Logs Info.
37 - T1 query parameter. The end of the timespan for the data. T1 can be a maximum
38 of 31 days after t0.
39 type: str
40 timespan:
41 description:
42 - Information module for Organizations Webhooks Logs Info.
43 - >
44 Timespan query parameter. The timespan for which the information will be fetched.
45 If specifying timespan, do not specify parameters t0 and t1. The value must
46 be in seconds and be less than or equal to 31 days. The default is 1 day.
47 type: float
48 perPage:
49 description:
50 - Information module for Organizations Webhooks Logs Info.
51 - PerPage query parameter. The number of entries per page returned. Acceptable
52 range is 3 - 1000. Default is 50.
53 type: int
54 startingAfter:
55 description:
56 - Information module for Organizations Webhooks Logs Info.
57 - >
58 StartingAfter query parameter. A token used by the server to indicate the
59 start of the page. Often this is a timestamp or an ID but it is not limited
60 to those. This parameter should not be defined by client applications. The
61 link for the first, last, prev, or next page in the HTTP Link header should
62 define it.
63 type: str
64 endingBefore:
65 description:
66 - Information module for Organizations Webhooks Logs Info.
67 - >
68 EndingBefore query parameter. A token used by the server to indicate the end
69 of the page. Often this is a timestamp or an ID but it is not limited to those.
70 This parameter should not be defined by client applications. The link for
71 the first, last, prev, or next page in the HTTP Link header should define
72 it.
73 type: str
74 url:
75 description:
76 - Information module for Organizations Webhooks Logs Info.
77 - Url query parameter. The URL the webhook was sent to.
78 type: str
79 requirements:
80 - meraki >= 2.4.9
81 - python >= 3.5
82 seealso:
83 - name: Cisco Meraki documentation for organizations getOrganizationWebhooksLogs
84 description: Complete reference of the getOrganizationWebhooksLogs API.
85 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-webhooks-logs
86 notes:
87 - SDK Method used are
88 organizations.Organizations.get_organization_webhooks_logs,
89 - Paths used are
90 get /organizations/{organizationId}/webhooks/logs,
91 """
92
93 EXAMPLES = r"""
94 - name: Get all organizations _webhooks _logs
95 cisco.meraki.organizations_webhooks_logs_info:
96 meraki_api_key: "{{ meraki_api_key }}"
97 meraki_base_url: "{{ meraki_base_url }}"
98 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
99 meraki_certificate_path: "{{ meraki_certificate_path }}"
100 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
101 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
102 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
103 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
104 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
105 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
106 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
107 meraki_output_log: "{{ meraki_output_log }}"
108 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
109 meraki_log_path: "{{ meraki_log_path }}"
110 meraki_print_console: "{{ meraki_print_console }}"
111 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
112 meraki_simulate: "{{ meraki_simulate }}"
113 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
114 meraki_caller: "{{ meraki_caller }}"
115 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
116 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
117 t0: string
118 t1: string
119 timespan: 0
120 perPage: 0
121 startingAfter: string
122 endingBefore: string
123 url: string
124 organizationId: string
125 total_pages: -1
126 direction: next
127 register: result
128 """
129 RETURN = r"""
130 meraki_response:
131 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
132 returned: always
133 type: list
134 elements: dict
135 sample: >
136 [
137 {
138 "alertType": "string",
139 "loggedAt": "string",
140 "networkId": "string",
141 "organizationId": "string",
142 "responseCode": 0,
143 "responseDuration": 0,
144 "sentAt": "string",
145 "url": "string"
146 }
147 ]
148 """