Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_group_policies_info.py

raw symbols SCIP
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: networks_group_policies_info
9 short_description: Information module for networks _grouppolicies
10 description:
11 - Information module for Networks Grouppolicies Info.
12 - Get all networks _grouppolicies.
13 - Get networks _grouppolicies by id.
14 - Display a group policy.
15 - List the group policies in a network.
16 version_added: '1.0.0'
17 extends_documentation_fragment:
18 - cisco.meraki.module_info
19 author: Francisco Munoz (@fmunoz)
20 options:
21 headers:
22 description: Additional headers.
23 type: dict
24 networkId:
25 description:
26 - Information module for Networks Grouppolicies Info.
27 - NetworkId path parameter. Network ID.
28 type: str
29 groupPolicyId:
30 description:
31 - Information module for Networks Grouppolicies Info.
32 - GroupPolicyId path parameter. Group policy ID.
33 type: str
34 requirements:
35 - meraki >= 2.4.9
36 - python >= 3.5
37 seealso:
38 - name: Cisco Meraki documentation for networks getNetworkGroupPolicies
39 description: Complete reference of the getNetworkGroupPolicies API.
40 link: https://developer.cisco.com/meraki/api-v1/#!get-network-group-policies
41 - name: Cisco Meraki documentation for networks getNetworkGroupPolicy
42 description: Complete reference of the getNetworkGroupPolicy API.
43 link: https://developer.cisco.com/meraki/api-v1/#!get-network-group-policy
44 notes:
45 - SDK Method used are
46 networks.Networks.get_network_group_policies,
47 networks.Networks.get_network_group_policy,
48 - Paths used are
49 get /networks/{networkId}/groupPolicies,
50 get /networks/{networkId}/groupPolicies/{groupPolicyId},
51 """
52
53 EXAMPLES = r"""
54 - name: Get all networks _grouppolicies
55 cisco.meraki.networks_group_policies_info:
56 meraki_api_key: "{{ meraki_api_key }}"
57 meraki_base_url: "{{ meraki_base_url }}"
58 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
59 meraki_certificate_path: "{{ meraki_certificate_path }}"
60 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
61 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
62 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
63 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
64 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
65 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
66 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
67 meraki_output_log: "{{ meraki_output_log }}"
68 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
69 meraki_log_path: "{{ meraki_log_path }}"
70 meraki_print_console: "{{ meraki_print_console }}"
71 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
72 meraki_simulate: "{{ meraki_simulate }}"
73 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
74 meraki_caller: "{{ meraki_caller }}"
75 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
76 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
77 networkId: string
78 register: result
79 - name: Get networks _grouppolicies by id
80 cisco.meraki.networks_group_policies_info:
81 meraki_api_key: "{{ meraki_api_key }}"
82 meraki_base_url: "{{ meraki_base_url }}"
83 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
84 meraki_certificate_path: "{{ meraki_certificate_path }}"
85 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
86 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
87 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
88 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
89 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
90 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
91 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
92 meraki_output_log: "{{ meraki_output_log }}"
93 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
94 meraki_log_path: "{{ meraki_log_path }}"
95 meraki_print_console: "{{ meraki_print_console }}"
96 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
97 meraki_simulate: "{{ meraki_simulate }}"
98 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
99 meraki_caller: "{{ meraki_caller }}"
100 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
101 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
102 networkId: string
103 groupPolicyId: string
104 register: result
105 """
106 RETURN = r"""
107 meraki_response:
108 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
109 returned: always
110 type: dict
111 sample: >
112 {
113 "groupPolicyId": "string",
114 "scheduling": {
115 "enabled": true,
116 "monday": {
117 "active": true,
118 "from": "string",
119 "to": "string"
120 },
121 "tuesday": {
122 "active": true,
123 "from": "string",
124 "to": "string"
125 },
126 "wednesday": {
127 "active": true,
128 "from": "string",
129 "to": "string"
130 },
131 "thursday": {
132 "active": true,
133 "from": "string",
134 "to": "string"
135 },
136 "friday": {
137 "active": true,
138 "from": "string",
139 "to": "string"
140 },
141 "saturday": {
142 "active": true,
143 "from": "string",
144 "to": "string"
145 },
146 "sunday": {
147 "active": true,
148 "from": "string",
149 "to": "string"
150 }
151 },
152 "bandwidth": {
153 "settings": "string",
154 "bandwidthLimits": {
155 "limitUp": 0,
156 "limitDown": 0
157 }
158 },
159 "firewallAndTrafficShaping": {
160 "settings": "string",
161 "trafficShapingRules": [
162 {
163 "definitions": [
164 {
165 "type": "string",
166 "value": "string"
167 }
168 ],
169 "perClientBandwidthLimits": {
170 "settings": "string",
171 "bandwidthLimits": {
172 "limitUp": 0,
173 "limitDown": 0
174 }
175 },
176 "dscpTagValue": 0,
177 "pcpTagValue": 0,
178 "priority": "string"
179 }
180 ],
181 "l3FirewallRules": [
182 {
183 "comment": "string",
184 "policy": "string",
185 "protocol": "string",
186 "destPort": "string",
187 "destCidr": "string"
188 }
189 ],
190 "l7FirewallRules": [
191 {
192 "policy": "string",
193 "type": "string",
194 "value": "string"
195 }
196 ]
197 },
198 "contentFiltering": {
199 "allowedUrlPatterns": {
200 "settings": "string",
201 "patterns": [
202 "string"
203 ]
204 },
205 "blockedUrlPatterns": {
206 "settings": "string",
207 "patterns": [
208 "string"
209 ]
210 },
211 "blockedUrlCategories": {
212 "settings": "string",
213 "categories": [
214 "string"
215 ]
216 }
217 },
218 "splashAuthSettings": "string",
219 "vlanTagging": {
220 "settings": "string",
221 "vlanId": "string"
222 },
223 "bonjourForwarding": {
224 "settings": "string",
225 "rules": [
226 {
227 "description": "string",
228 "vlanId": "string",
229 "services": [
230 "string"
231 ]
232 }
233 ]
234 }
235 }
236 """