Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_wireless_air_marshal_rules.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: networks_wireless_air_marshal_rules
9 short_description: Resource module for networks _wireless _air _marshal _rules
10 description:
11 - Manage operations create, update and delete of the resource networks _wireless
12 _air _marshal _rules.
13 - Creates a new rule.
14 - Delete an Air Marshal rule.
15 - Update a rule.
16 version_added: '1.0.0'
17 extends_documentation_fragment:
18 - cisco.meraki.module
19 author: Francisco Munoz (@fmunoz)
20 options:
21 match:
22 description: Object describing the rule specification.
23 suboptions:
24 string:
25 description: The string used to match.
26 type: str
27 type:
28 description: The type of match.
29 type: str
30 type: dict
31 networkId:
32 description: NetworkId path parameter. Network ID.
33 type: str
34 ruleId:
35 description: RuleId path parameter. Rule ID.
36 type: str
37 type:
38 description: Indicates if this rule will allow, block, or alert.
39 type: str
40 requirements:
41 - meraki >= 2.4.9
42 - python >= 3.5
43 seealso:
44 - name: Cisco Meraki documentation for wireless createNetworkWirelessAirMarshalRule
45 description: Complete reference of the createNetworkWirelessAirMarshalRule API.
46 link: https://developer.cisco.com/meraki/api-v1/#!create-network-wireless-air-marshal-rule
47 - name: Cisco Meraki documentation for wireless deleteNetworkWirelessAirMarshalRule
48 description: Complete reference of the deleteNetworkWirelessAirMarshalRule API.
49 link: https://developer.cisco.com/meraki/api-v1/#!delete-network-wireless-air-marshal-rule
50 - name: Cisco Meraki documentation for wireless updateNetworkWirelessAirMarshalRule
51 description: Complete reference of the updateNetworkWirelessAirMarshalRule API.
52 link: https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-air-marshal-rule
53 notes:
54 - SDK Method used are
55 wireless.Wireless.create_network_wireless_air_marshal_rule,
56 wireless.Wireless.delete_network_wireless_air_marshal_rule,
57 wireless.Wireless.update_network_wireless_air_marshal_rule,
58 - Paths used are
59 post /networks/{networkId}/wireless/airMarshal/rules,
60 delete /networks/{networkId}/wireless/airMarshal/rules/{ruleId},
61 put /networks/{networkId}/wireless/airMarshal/rules/{ruleId},
62 """
63
64 EXAMPLES = r"""
65 - name: Create
66 cisco.meraki.networks_wireless_air_marshal_rules:
67 meraki_api_key: "{{ meraki_api_key }}"
68 meraki_base_url: "{{ meraki_base_url }}"
69 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
70 meraki_certificate_path: "{{ meraki_certificate_path }}"
71 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
72 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
73 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
74 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
75 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
76 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
77 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
78 meraki_output_log: "{{ meraki_output_log }}"
79 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
80 meraki_log_path: "{{ meraki_log_path }}"
81 meraki_print_console: "{{ meraki_print_console }}"
82 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
83 meraki_simulate: "{{ meraki_simulate }}"
84 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
85 meraki_caller: "{{ meraki_caller }}"
86 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
87 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
88 state: present
89 match:
90 string: 00:11:22:33:44:55
91 type: bssid
92 networkId: string
93 type: allow
94 - name: Update by id
95 cisco.meraki.networks_wireless_air_marshal_rules:
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 state: present
118 match:
119 string: 00:11:22:33:44:55
120 type: bssid
121 networkId: string
122 ruleId: string
123 type: allow
124 - name: Delete by id
125 cisco.meraki.networks_wireless_air_marshal_rules:
126 meraki_api_key: "{{ meraki_api_key }}"
127 meraki_base_url: "{{ meraki_base_url }}"
128 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
129 meraki_certificate_path: "{{ meraki_certificate_path }}"
130 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
131 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
132 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
133 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
134 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
135 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
136 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
137 meraki_output_log: "{{ meraki_output_log }}"
138 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
139 meraki_log_path: "{{ meraki_log_path }}"
140 meraki_print_console: "{{ meraki_print_console }}"
141 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
142 meraki_simulate: "{{ meraki_simulate }}"
143 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
144 meraki_caller: "{{ meraki_caller }}"
145 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
146 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
147 state: absent
148 networkId: string
149 ruleId: string
150 """
151 RETURN = r"""
152 meraki_response:
153 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
154 returned: always
155 type: dict
156 sample: >
157 {
158 "network": {
159 "id": "string",
160 "name": "string"
161 },
162 "ruleId": "string",
163 "type": "string",
164 "updatedAt": "string",
165 "createdAt": "string",
166 "match": {
167 "string": "string",
168 "type": "string"
169 }
170 }
171 """