Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_wireless_mqtt_settings_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_wireless_mqtt_settings_info
9 short_description: Information module for organizations _wireless _mqtt _settings
10 description:
11 - Information module for Organizations Wireless Mqtt Settings Info.
12 - Get all organizations _wireless _mqtt _settings.
13 - Return MQTT Settings for networks.
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 Wireless Mqtt Settings Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 perPage:
29 description:
30 - Information module for Organizations Wireless Mqtt Settings Info.
31 - PerPage query parameter. The number of entries per page returned. Acceptable
32 range is 3 - 250. Default is 50.
33 type: int
34 startingAfter:
35 description:
36 - Information module for Organizations Wireless Mqtt Settings Info.
37 - >
38 StartingAfter query parameter. A token used by the server to indicate the
39 start of the page. Often this is a timestamp or an ID but it is not limited
40 to those. This parameter should not be defined by client applications. The
41 link for the first, last, prev, or next page in the HTTP Link header should
42 define it.
43 type: str
44 endingBefore:
45 description:
46 - Information module for Organizations Wireless Mqtt Settings Info.
47 - >
48 EndingBefore query parameter. A token used by the server to indicate the end
49 of the page. Often this is a timestamp or an ID but it is not limited to those.
50 This parameter should not be defined by client applications. The link for
51 the first, last, prev, or next page in the HTTP Link header should define
52 it.
53 type: str
54 networkIds:
55 description:
56 - Information module for Organizations Wireless Mqtt Settings Info.
57 - NetworkIds query parameter. Optional parameter to filter mqtt settings by
58 network ID.
59 elements: str
60 type: list
61 requirements:
62 - meraki >= 2.4.9
63 - python >= 3.5
64 seealso:
65 - name: Cisco Meraki documentation for wireless getOrganizationWirelessMqttSettings
66 description: Complete reference of the getOrganizationWirelessMqttSettings API.
67 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-wireless-mqtt-settings
68 notes:
69 - SDK Method used are
70 wireless.Wireless.get_organization_wireless_mqtt_settings,
71 - Paths used are
72 get /organizations/{organizationId}/wireless/mqtt/settings,
73 """
74
75 EXAMPLES = r"""
76 - name: Get all organizations _wireless _mqtt _settings
77 cisco.meraki.organizations_wireless_mqtt_settings_info:
78 meraki_api_key: "{{ meraki_api_key }}"
79 meraki_base_url: "{{ meraki_base_url }}"
80 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
81 meraki_certificate_path: "{{ meraki_certificate_path }}"
82 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
83 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
84 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
85 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
86 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
87 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
88 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
89 meraki_output_log: "{{ meraki_output_log }}"
90 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
91 meraki_log_path: "{{ meraki_log_path }}"
92 meraki_print_console: "{{ meraki_print_console }}"
93 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
94 meraki_simulate: "{{ meraki_simulate }}"
95 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
96 meraki_caller: "{{ meraki_caller }}"
97 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
98 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
99 perPage: 0
100 startingAfter: string
101 endingBefore: string
102 networkIds: []
103 organizationId: string
104 total_pages: -1
105 direction: next
106 register: result
107 """
108 RETURN = r"""
109 meraki_response:
110 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
111 returned: always
112 type: dict
113 sample: >
114 {
115 "items": [
116 {
117 "network": {
118 "id": "string",
119 "name": "string"
120 },
121 "mqtt": {
122 "settingsId": "string",
123 "enabled": true,
124 "topic": "string",
125 "messageFields": [
126 "string"
127 ],
128 "publishing": {
129 "frequency": 0,
130 "qos": 0
131 },
132 "broker": {
133 "id": "string",
134 "name": "string"
135 }
136 },
137 "ble": {
138 "enabled": true,
139 "type": "string",
140 "flush": {
141 "frequency": 0
142 },
143 "allowLists": {
144 "uuids": [
145 "string"
146 ],
147 "macs": [
148 "string"
149 ]
150 },
151 "hysteresis": {
152 "enabled": true,
153 "threshold": 0
154 }
155 },
156 "wifi": {
157 "enabled": true,
158 "type": "string",
159 "flush": {
160 "frequency": 0
161 },
162 "allowLists": {
163 "macs": [
164 "string"
165 ]
166 },
167 "hysteresis": {
168 "enabled": true,
169 "threshold": 0
170 }
171 }
172 }
173 ],
174 "meta": {
175 "counts": {
176 "items": {
177 "total": 0,
178 "remaining": 0
179 }
180 }
181 }
182 }
183 """