Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_campus_gateway_clusters_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_campus_gateway_clusters_info
9 short_description: Information module for organizations _campus _gateway _clusters
10 description:
11 - Information module for Organizations Campus Gateway Clusters Info.
12 - Get all organizations _campus _gateway _clusters.
13 - Get the details of campus gateway clusters.
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 Campus Gateway Clusters Info.
26 - OrganizationId path parameter. Organization ID.
27 type: str
28 networkIds:
29 description:
30 - Information module for Organizations Campus Gateway Clusters Info.
31 - NetworkIds query parameter. Networks for which information should be gathered.
32 elements: str
33 type: list
34 perPage:
35 description:
36 - Information module for Organizations Campus Gateway Clusters Info.
37 - PerPage query parameter. The number of entries per page returned. Acceptable
38 range is 3 - 100. Default is 50.
39 type: int
40 startingAfter:
41 description:
42 - Information module for Organizations Campus Gateway Clusters Info.
43 - >
44 StartingAfter query parameter. A token used by the server to indicate the
45 start of the page. Often this is a timestamp or an ID but it is not limited
46 to those. This parameter should not be defined by client applications. The
47 link for the first, last, prev, or next page in the HTTP Link header should
48 define it.
49 type: str
50 endingBefore:
51 description:
52 - Information module for Organizations Campus Gateway Clusters Info.
53 - >
54 EndingBefore query parameter. A token used by the server to indicate the end
55 of the page. Often this is a timestamp or an ID but it is not limited to those.
56 This parameter should not be defined by client applications. The link for
57 the first, last, prev, or next page in the HTTP Link header should define
58 it.
59 type: str
60 requirements:
61 - meraki >= 2.4.9
62 - python >= 3.5
63 seealso:
64 - name: Cisco Meraki documentation for campusGateway getOrganizationCampusGatewayClusters
65 description: Complete reference of the getOrganizationCampusGatewayClusters API.
66 link: https://developer.cisco.com/meraki/api-v1/#!get-organization-campus-gateway-clusters
67 notes:
68 - SDK Method used are
69 campus_gateway.CampusGateway.get_organization_campus_gateway_clusters,
70 - Paths used are
71 get /organizations/{organizationId}/campusGateway/clusters,
72 """
73
74 EXAMPLES = r"""
75 - name: Get all organizations _campus _gateway _clusters
76 cisco.meraki.organizations_campus_gateway_clusters_info:
77 meraki_api_key: "{{ meraki_api_key }}"
78 meraki_base_url: "{{ meraki_base_url }}"
79 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
80 meraki_certificate_path: "{{ meraki_certificate_path }}"
81 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
82 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
83 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
84 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
85 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
86 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
87 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
88 meraki_output_log: "{{ meraki_output_log }}"
89 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
90 meraki_log_path: "{{ meraki_log_path }}"
91 meraki_print_console: "{{ meraki_print_console }}"
92 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
93 meraki_simulate: "{{ meraki_simulate }}"
94 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
95 meraki_caller: "{{ meraki_caller }}"
96 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
97 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
98 networkIds: []
99 perPage: 0
100 startingAfter: string
101 endingBefore: string
102 organizationId: string
103 total_pages: -1
104 direction: next
105 register: result
106 """
107 RETURN = r"""
108 meraki_response:
109 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
110 returned: always
111 type: dict
112 sample: >
113 {
114 "items": [
115 {
116 "network": {
117 "id": "string"
118 },
119 "clusterId": "string",
120 "name": "string",
121 "uplinks": [
122 {
123 "interface": "string",
124 "vlan": 0,
125 "addresses": [
126 {
127 "assignmentMode": "string",
128 "protocol": "string",
129 "gateway": "string",
130 "subnetMask": "string"
131 }
132 ]
133 }
134 ],
135 "tunnels": [
136 {
137 "uplink": {
138 "interface": "string"
139 },
140 "interface": "string",
141 "vlan": 0,
142 "addresses": [
143 {
144 "protocol": "string",
145 "gateway": "string",
146 "subnetMask": "string"
147 }
148 ]
149 }
150 ],
151 "nameservers": {
152 "addresses": [
153 "string"
154 ]
155 },
156 "portChannels": [
157 {
158 "id": "string",
159 "name": "string",
160 "vlan": 0,
161 "allowedVlans": "string"
162 }
163 ],
164 "devices": [
165 {
166 "serial": "string",
167 "memberId": "string",
168 "uplinks": [
169 {
170 "interface": "string",
171 "addresses": [
172 {
173 "protocol": "string",
174 "address": "string"
175 }
176 ]
177 }
178 ],
179 "tunnels": [
180 {
181 "interface": "string",
182 "addresses": [
183 {
184 "protocol": "string",
185 "address": "string"
186 }
187 ]
188 }
189 ]
190 }
191 ],
192 "notes": "string",
193 "url": "string"
194 }
195 ],
196 "meta": {
197 "counts": {
198 "items": {
199 "total": 0,
200 "remaining": 0
201 }
202 }
203 }
204 }
205 """