Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_camera_wireless_profiles.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_camera_wireless_profiles
9 short_description: Resource module for networks _camera _wirelessprofiles
10 description:
11 - Manage operations create, update and delete of the resource networks _camera _wirelessprofiles.
12 - Creates a new camera wireless profile for this network.
13 - Delete an existing camera wireless profile for this network.
14 - Update an existing camera wireless profile in this network.
15 version_added: '1.0.0'
16 extends_documentation_fragment:
17 - cisco.meraki.module
18 author: Francisco Munoz (@fmunoz)
19 options:
20 identity:
21 description: The identity of the wireless profile. Required for creating wireless
22 profiles in 8021x-radius auth mode.
23 suboptions:
24 password:
25 description: The password of the identity.
26 type: str
27 username:
28 description: The username of the identity.
29 type: str
30 type: dict
31 name:
32 description: The name of the camera wireless profile. This parameter is required.
33 type: str
34 networkId:
35 description: NetworkId path parameter. Network ID.
36 type: str
37 ssid:
38 description: The details of the SSID config.
39 suboptions:
40 authMode:
41 description: The auth mode of the SSID. It can be set to ('psk', '8021x-radius').
42 type: str
43 encryptionMode:
44 description: The encryption mode of the SSID. It can be set to ('wpa', 'wpa-eap').
45 With 'wpa' mode, the authMode should be 'psk' and with 'wpa-eap' the authMode
46 should be '8021x-radius'.
47 type: str
48 name:
49 description: The name of the SSID.
50 type: str
51 psk:
52 description: The pre-shared key of the SSID.
53 type: str
54 type: dict
55 wirelessProfileId:
56 description: WirelessProfileId path parameter. Wireless profile ID.
57 type: str
58 requirements:
59 - meraki >= 2.4.9
60 - python >= 3.5
61 seealso:
62 - name: Cisco Meraki documentation for camera createNetworkCameraWirelessProfile
63 description: Complete reference of the createNetworkCameraWirelessProfile API.
64 link: https://developer.cisco.com/meraki/api-v1/#!create-network-camera-wireless-profile
65 - name: Cisco Meraki documentation for camera deleteNetworkCameraWirelessProfile
66 description: Complete reference of the deleteNetworkCameraWirelessProfile API.
67 link: https://developer.cisco.com/meraki/api-v1/#!delete-network-camera-wireless-profile
68 - name: Cisco Meraki documentation for camera updateNetworkCameraWirelessProfile
69 description: Complete reference of the updateNetworkCameraWirelessProfile API.
70 link: https://developer.cisco.com/meraki/api-v1/#!update-network-camera-wireless-profile
71 notes:
72 - SDK Method used are
73 camera.Camera.create_network_camera_wireless_profile,
74 camera.Camera.delete_network_camera_wireless_profile,
75 camera.Camera.update_network_camera_wireless_profile,
76 - Paths used are
77 post /networks/{networkId}/camera/wirelessProfiles,
78 delete /networks/{networkId}/camera/wirelessProfiles/{wirelessProfileId},
79 put /networks/{networkId}/camera/wirelessProfiles/{wirelessProfileId},
80 """
81
82 EXAMPLES = r"""
83 - name: Create
84 cisco.meraki.networks_camera_wireless_profiles:
85 meraki_api_key: "{{ meraki_api_key }}"
86 meraki_base_url: "{{ meraki_base_url }}"
87 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
88 meraki_certificate_path: "{{ meraki_certificate_path }}"
89 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
90 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
91 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
92 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
93 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
94 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
95 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
96 meraki_output_log: "{{ meraki_output_log }}"
97 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
98 meraki_log_path: "{{ meraki_log_path }}"
99 meraki_print_console: "{{ meraki_print_console }}"
100 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
101 meraki_simulate: "{{ meraki_simulate }}"
102 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
103 meraki_caller: "{{ meraki_caller }}"
104 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
105 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
106 state: present
107 identity:
108 password: password123
109 username: identityname
110 name: wireless profile A
111 networkId: string
112 ssid:
113 authMode: 8021x-radius
114 encryptionMode: wpa-eap
115 name: ssid test
116 psk: sampleKey
117 - name: Update by id
118 cisco.meraki.networks_camera_wireless_profiles:
119 meraki_api_key: "{{ meraki_api_key }}"
120 meraki_base_url: "{{ meraki_base_url }}"
121 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
122 meraki_certificate_path: "{{ meraki_certificate_path }}"
123 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
124 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
125 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
126 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
127 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
128 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
129 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
130 meraki_output_log: "{{ meraki_output_log }}"
131 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
132 meraki_log_path: "{{ meraki_log_path }}"
133 meraki_print_console: "{{ meraki_print_console }}"
134 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
135 meraki_simulate: "{{ meraki_simulate }}"
136 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
137 meraki_caller: "{{ meraki_caller }}"
138 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
139 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
140 state: present
141 identity:
142 password: password123
143 username: identityname
144 name: wireless profile A
145 networkId: string
146 ssid:
147 authMode: 8021x-radius
148 encryptionMode: wpa-eap
149 name: ssid test
150 psk: sampleKey
151 wirelessProfileId: string
152 - name: Delete by id
153 cisco.meraki.networks_camera_wireless_profiles:
154 meraki_api_key: "{{ meraki_api_key }}"
155 meraki_base_url: "{{ meraki_base_url }}"
156 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
157 meraki_certificate_path: "{{ meraki_certificate_path }}"
158 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
159 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
160 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
161 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
162 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
163 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
164 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
165 meraki_output_log: "{{ meraki_output_log }}"
166 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
167 meraki_log_path: "{{ meraki_log_path }}"
168 meraki_print_console: "{{ meraki_print_console }}"
169 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
170 meraki_simulate: "{{ meraki_simulate }}"
171 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
172 meraki_caller: "{{ meraki_caller }}"
173 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
174 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
175 state: absent
176 networkId: string
177 wirelessProfileId: string
178 """
179 RETURN = r"""
180 meraki_response:
181 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
182 returned: always
183 type: dict
184 sample: >
185 {
186 "id": "string",
187 "name": "string",
188 "appliedDeviceCount": 0,
189 "ssid": {
190 "name": "string",
191 "authMode": "string",
192 "encryptionMode": "string",
193 "psk": "string"
194 },
195 "identity": {
196 "username": "string",
197 "password": "string"
198 }
199 }
200 """