| 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_ssids_hotspot20 |
| 9 |
short_description: Resource module for networks _wireless _ssids _hotspot20 |
| 10 |
description: |
| 11 |
- Manage operation update of the resource networks _wireless _ssids _hotspot20. |
| 12 |
- Update the Hotspot 2.0 settings of an SSID. |
| 13 |
version_added: '1.0.0' |
| 14 |
extends_documentation_fragment: |
| 15 |
- cisco.meraki.module |
| 16 |
author: Francisco Munoz (@fmunoz) |
| 17 |
options: |
| 18 |
domains: |
| 19 |
description: An array of domain names. |
| 20 |
elements: str |
| 21 |
type: list |
| 22 |
enabled: |
| 23 |
description: Whether or not Hotspot 2.0 for this SSID is enabled. |
| 24 |
type: bool |
| 25 |
mccMncs: |
| 26 |
description: An array of MCC/MNC pairs. |
| 27 |
elements: dict |
| 28 |
suboptions: |
| 29 |
mcc: |
| 30 |
description: MCC value. |
| 31 |
type: str |
| 32 |
mnc: |
| 33 |
description: MNC value. |
| 34 |
type: str |
| 35 |
type: list |
| 36 |
naiRealms: |
| 37 |
description: An array of NAI realms. |
| 38 |
elements: dict |
| 39 |
suboptions: |
| 40 |
format: |
| 41 |
description: The format for the realm ('1' or '0'). |
| 42 |
type: str |
| 43 |
methods: |
| 44 |
description: An array of EAP methods for the realm. |
| 45 |
elements: dict |
| 46 |
suboptions: |
| 47 |
authenticationTypes: |
| 48 |
description: The authentication types for the method. These should be |
| 49 |
formatted as an object with the EAP method category in camelcase as |
| 50 |
the key and the list of types as the value (nonEapInnerAuthentication |
| 51 |
Reserved, PAP, CHAP, MSCHAP, MSCHAPV2; eapInnerAuthentication EAP-TLS, |
| 52 |
EAP-SIM, EAP-AKA, EAP-TTLS with MSCHAPv2; credentials SIM, USIM, NFC |
| 53 |
Secure Element, Hardware Token, Softoken, Certificate, username/password, |
| 54 |
none, Reserved, Vendor Specific; tunneledEapMethodCredentials SIM, USIM, |
| 55 |
NFC Secure Element, Hardware Token, Softoken, Certificate, username/password, |
| 56 |
Reserved, Anonymous, Vendor Specific). |
| 57 |
suboptions: |
| 58 |
credentials: |
| 59 |
description: An array of credentials. |
| 60 |
elements: str |
| 61 |
type: list |
| 62 |
eapInnerAuthentication: |
| 63 |
description: An array of EAP inner authentication types. |
| 64 |
elements: str |
| 65 |
type: list |
| 66 |
nonEapInnerAuthentication: |
| 67 |
description: An array of non-EAP inner authentication types. |
| 68 |
elements: str |
| 69 |
type: list |
| 70 |
tunneledEapMethodCredentials: |
| 71 |
description: An array of tunneled EAP method credentials. |
| 72 |
elements: str |
| 73 |
type: list |
| 74 |
type: dict |
| 75 |
id: |
| 76 |
description: ID of method. |
| 77 |
type: str |
| 78 |
type: list |
| 79 |
realm: |
| 80 |
description: The name of the realm. |
| 81 |
type: str |
| 82 |
type: list |
| 83 |
networkAccessType: |
| 84 |
description: The network type of this SSID ('Private network', 'Private network |
| 85 |
with guest access', 'Chargeable public network', 'Free public network', 'Personal |
| 86 |
device network', 'Emergency services only network', 'Test or experimental', |
| 87 |
'Wildcard'). |
| 88 |
type: str |
| 89 |
networkId: |
| 90 |
description: NetworkId path parameter. Network ID. |
| 91 |
type: str |
| 92 |
number: |
| 93 |
description: Number path parameter. |
| 94 |
type: str |
| 95 |
operator: |
| 96 |
description: Operator settings for this SSID. |
| 97 |
suboptions: |
| 98 |
name: |
| 99 |
description: Operator name. |
| 100 |
type: str |
| 101 |
type: dict |
| 102 |
roamConsortOis: |
| 103 |
description: An array of roaming consortium OIs (hexadecimal number 3-5 octets |
| 104 |
in length). |
| 105 |
elements: str |
| 106 |
type: list |
| 107 |
venue: |
| 108 |
description: Venue settings for this SSID. |
| 109 |
suboptions: |
| 110 |
name: |
| 111 |
description: Venue name. |
| 112 |
type: str |
| 113 |
type: |
| 114 |
description: Venue type ('Unspecified', 'Unspecified Assembly', 'Arena', 'Stadium', |
| 115 |
'Passenger Terminal', 'Amphitheater', 'Amusement Park', 'Place of Worship', |
| 116 |
'Convention Center', 'Library', 'Museum', 'Restaurant', 'Theater', 'Bar', |
| 117 |
'Coffee Shop', 'Zoo or Aquarium', 'Emergency Coordination Center', 'Unspecified |
| 118 |
Business', 'Doctor or Dentist office', 'Bank', 'Fire Station', 'Police Station', |
| 119 |
'Post Office', 'Professional Office', 'Research and Development Facility', |
| 120 |
'Attorney Office', 'Unspecified Educational', 'School, Primary', 'School, |
| 121 |
Secondary', 'University or College', 'Unspecified Factory and Industrial', |
| 122 |
'Factory', 'Unspecified Institutional', 'Hospital', 'Long-Term Care Facility', |
| 123 |
'Alcohol and Drug Rehabilitation Center', 'Group Home', 'Prison or Jail', |
| 124 |
'Unspecified Mercantile', 'Retail Store', 'Grocery Market', 'Automotive |
| 125 |
Service Station', 'Shopping Mall', 'Gas Station', 'Unspecified Residential', |
| 126 |
'Private Residence', 'Hotel or Motel', 'Dormitory', 'Boarding House', 'Unspecified |
| 127 |
Storage', 'Unspecified Utility and Miscellaneous', 'Unspecified Vehicular', |
| 128 |
'Automobile or Truck', 'Airplane', 'Bus', 'Ferry', 'Ship or Boat', 'Train', |
| 129 |
'Motor Bike', 'Unspecified Outdoor', 'Muni-mesh Network', 'City Park', 'Rest |
| 130 |
Area', 'Traffic Control', 'Bus Stop', 'Kiosk'). |
| 131 |
type: str |
| 132 |
type: dict |
| 133 |
requirements: |
| 134 |
- meraki >= 2.4.9 |
| 135 |
- python >= 3.5 |
| 136 |
seealso: |
| 137 |
- name: Cisco Meraki documentation for wireless updateNetworkWirelessSsidHotspot20 |
| 138 |
description: Complete reference of the updateNetworkWirelessSsidHotspot20 API. |
| 139 |
link: https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid-hotspot20 |
| 140 |
notes: |
| 141 |
- SDK Method used are |
| 142 |
wireless.Wireless.update_network_wireless_ssid_hotspot20, |
| 143 |
- Paths used are |
| 144 |
put /networks/{networkId}/wireless/ssids/{number}/hotspot20, |
| 145 |
""" |
| 146 |
|
| 147 |
EXAMPLES = r""" |
| 148 |
- name: Update all |
| 149 |
cisco.meraki.networks_wireless_ssids_hotspot20: |
| 150 |
meraki_api_key: "{{ meraki_api_key }}" |
| 151 |
meraki_base_url: "{{ meraki_base_url }}" |
| 152 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 153 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 154 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 155 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 156 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 157 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 158 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 159 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 160 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 161 |
meraki_output_log: "{{ meraki_output_log }}" |
| 162 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 163 |
meraki_log_path: "{{ meraki_log_path }}" |
| 164 |
meraki_print_console: "{{ meraki_print_console }}" |
| 165 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 166 |
meraki_simulate: "{{ meraki_simulate }}" |
| 167 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 168 |
meraki_caller: "{{ meraki_caller }}" |
| 169 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 170 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 171 |
state: present |
| 172 |
domains: |
| 173 |
- meraki.local |
| 174 |
- domain2.com |
| 175 |
enabled: true |
| 176 |
mccMncs: |
| 177 |
- mcc: '123' |
| 178 |
mnc: '456' |
| 179 |
naiRealms: |
| 180 |
- format: '1' |
| 181 |
methods: |
| 182 |
- authenticationTypes: |
| 183 |
credentials: [] |
| 184 |
eapInnerAuthentication: |
| 185 |
- EAP-TTLS with MSCHAPv2 |
| 186 |
nonEapInnerAuthentication: |
| 187 |
- MSCHAP |
| 188 |
tunneledEapMethodCredentials: [] |
| 189 |
id: '1' |
| 190 |
realm: Realm 1 |
| 191 |
networkAccessType: Private network |
| 192 |
networkId: string |
| 193 |
number: string |
| 194 |
operator: |
| 195 |
name: Meraki Product Management |
| 196 |
roamConsortOis: |
| 197 |
- ABC123 |
| 198 |
- 456EFG |
| 199 |
venue: |
| 200 |
name: SF Branch |
| 201 |
type: Unspecified Assembly |
| 202 |
""" |
| 203 |
RETURN = r""" |
| 204 |
meraki_response: |
| 205 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 206 |
returned: always |
| 207 |
type: dict |
| 208 |
sample: > |
| 209 |
{ |
| 210 |
"enabled": true, |
| 211 |
"operator": { |
| 212 |
"name": "string" |
| 213 |
}, |
| 214 |
"venue": { |
| 215 |
"name": "string", |
| 216 |
"type": "string" |
| 217 |
}, |
| 218 |
"networkAccessType": "string", |
| 219 |
"domains": [ |
| 220 |
"string" |
| 221 |
], |
| 222 |
"roamConsortOis": [ |
| 223 |
"string" |
| 224 |
], |
| 225 |
"mccMncs": [ |
| 226 |
{ |
| 227 |
"mcc": "string", |
| 228 |
"mnc": "string" |
| 229 |
} |
| 230 |
], |
| 231 |
"naiRealms": [ |
| 232 |
{ |
| 233 |
"format": "string", |
| 234 |
"name": "string", |
| 235 |
"methods": [ |
| 236 |
{ |
| 237 |
"id": "string", |
| 238 |
"authenticationTypes": { |
| 239 |
"nonEapInnerAuthentication": [ |
| 240 |
"string" |
| 241 |
], |
| 242 |
"eapInnerAuthentication": [ |
| 243 |
"string" |
| 244 |
], |
| 245 |
"credentials": [ |
| 246 |
"string" |
| 247 |
], |
| 248 |
"tunneledEapMethodCredentials": [ |
| 249 |
"string" |
| 250 |
] |
| 251 |
} |
| 252 |
} |
| 253 |
] |
| 254 |
} |
| 255 |
] |
| 256 |
} |
| 257 |
""" |