Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_appliance_ssids.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_appliance_ssids
9 short_description: Resource module for networks _appliance _ssids
10 description:
11 - Manage operation update of the resource networks _appliance _ssids.
12 - Update the attributes of an MX SSID.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 authMode:
19 description: The association control method for the SSID ('open', 'psk', '8021x-meraki'
20 or '8021x-radius').
21 type: str
22 defaultVlanId:
23 description: The VLAN ID of the VLAN associated to this SSID. This parameter is
24 only valid if the network is in routed mode.
25 type: int
26 dhcpEnforcedDeauthentication:
27 description: DHCP Enforced Deauthentication enables the disassociation of wireless
28 clients in addition to Mandatory DHCP. This param is only valid on firmware
29 versions >= MX 17.0 where the associated LAN has Mandatory DHCP Enabled.
30 suboptions:
31 enabled:
32 description: Enable DCHP Enforced Deauthentication on the SSID.
33 type: bool
34 type: dict
35 dot11w:
36 description: The current setting for Protected Management Frames (802.11w).
37 suboptions:
38 enabled:
39 description: Whether 802.11w is enabled or not.
40 type: bool
41 required:
42 description: (Optional) Whether 802.11w is required or not.
43 type: bool
44 type: dict
45 enabled:
46 description: Whether or not the SSID is enabled.
47 type: bool
48 encryptionMode:
49 description: The psk encryption mode for the SSID ('wep' or 'wpa'). This param
50 is only valid if the authMode is 'psk'.
51 type: str
52 name:
53 description: The name of the SSID.
54 type: str
55 networkId:
56 description: NetworkId path parameter. Network ID.
57 type: str
58 number:
59 description: Number path parameter.
60 type: str
61 psk:
62 description: The passkey for the SSID. This param is only valid if the authMode
63 is 'psk'.
64 type: str
65 radiusServers:
66 description: The RADIUS 802.1x servers to be used for authentication. This param
67 is only valid if the authMode is '8021x-radius'.
68 elements: dict
69 suboptions:
70 host:
71 description: The IP address of your RADIUS server.
72 type: str
73 port:
74 description: The UDP port your RADIUS servers listens on for Access-requests.
75 type: int
76 secret:
77 description: The RADIUS client shared secret.
78 type: str
79 type: list
80 visible:
81 description: Boolean indicating whether the MX should advertise or hide this SSID.
82 type: bool
83 wpaEncryptionMode:
84 description: The types of WPA encryption. ('WPA1 and WPA2', 'WPA2 only', 'WPA3
85 Transition Mode' or 'WPA3 only'). This param is only valid if (1) the authMode
86 is 'psk' & the encryptionMode is 'wpa' OR (2) the authMode is '8021x-meraki'
87 OR (3) the authMode is '8021x-radius'.
88 type: str
89 requirements:
90 - meraki >= 2.4.9
91 - python >= 3.5
92 seealso:
93 - name: Cisco Meraki documentation for appliance updateNetworkApplianceSsid
94 description: Complete reference of the updateNetworkApplianceSsid API.
95 link: https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-ssid
96 notes:
97 - SDK Method used are
98 appliance.Appliance.update_network_appliance_ssid,
99 - Paths used are
100 put /networks/{networkId}/appliance/ssids/{number},
101 """
102
103 EXAMPLES = r"""
104 - name: Update by id
105 cisco.meraki.networks_appliance_ssids:
106 meraki_api_key: "{{ meraki_api_key }}"
107 meraki_base_url: "{{ meraki_base_url }}"
108 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
109 meraki_certificate_path: "{{ meraki_certificate_path }}"
110 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
111 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
112 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
113 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
114 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
115 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
116 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
117 meraki_output_log: "{{ meraki_output_log }}"
118 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
119 meraki_log_path: "{{ meraki_log_path }}"
120 meraki_print_console: "{{ meraki_print_console }}"
121 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
122 meraki_simulate: "{{ meraki_simulate }}"
123 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
124 meraki_caller: "{{ meraki_caller }}"
125 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
126 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
127 state: present
128 authMode: 8021x-radius
129 defaultVlanId: 1
130 dhcpEnforcedDeauthentication:
131 enabled: true
132 dot11w:
133 enabled: true
134 required: true
135 enabled: true
136 encryptionMode: wpa
137 name: My SSID
138 networkId: string
139 number: string
140 psk: psk
141 radiusServers:
142 - host: 0.0.0.0
143 port: 1000
144 secret: secret
145 visible: true
146 wpaEncryptionMode: WPA2 only
147 """
148 RETURN = r"""
149 meraki_response:
150 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
151 returned: always
152 type: dict
153 sample: >
154 {
155 "number": 0,
156 "name": "string",
157 "enabled": true,
158 "defaultVlanId": 0,
159 "authMode": "string",
160 "radiusServers": [
161 {
162 "host": "string",
163 "port": 0
164 }
165 ],
166 "encryptionMode": "string",
167 "wpaEncryptionMode": "string",
168 "visible": true
169 }
170 """