Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_sm_devices_wipe.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_sm_devices_wipe
9 short_description: Resource module for networks _sm _devices _wipe
10 description:
11 - Manage operation create of the resource networks _sm _devices _wipe.
12 - Wipe a device.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 id:
19 description: The id of the device to be wiped.
20 type: str
21 networkId:
22 description: NetworkId path parameter. Network ID.
23 type: str
24 pin:
25 description: The pin number (a six digit value) for wiping a macOS device. Required
26 only for macOS devices.
27 type: int
28 serial:
29 description: The serial of the device to be wiped.
30 type: str
31 wifiMac:
32 description: The wifiMac of the device to be wiped.
33 type: str
34 requirements:
35 - meraki >= 2.4.9
36 - python >= 3.5
37 seealso:
38 - name: Cisco Meraki documentation for sm wipeNetworkSmDevices
39 description: Complete reference of the wipeNetworkSmDevices API.
40 link: https://developer.cisco.com/meraki/api-v1/#!wipe-network-sm-devices
41 notes:
42 - SDK Method used are
43 sm.Sm.wipe_network_sm_devices,
44 - Paths used are
45 post /networks/{networkId}/sm/devices/wipe,
46 """
47
48 EXAMPLES = r"""
49 - name: Create
50 cisco.meraki.networks_sm_devices_wipe:
51 meraki_api_key: "{{ meraki_api_key }}"
52 meraki_base_url: "{{ meraki_base_url }}"
53 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
54 meraki_certificate_path: "{{ meraki_certificate_path }}"
55 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
56 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
57 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
58 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
59 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
60 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
61 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
62 meraki_output_log: "{{ meraki_output_log }}"
63 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
64 meraki_log_path: "{{ meraki_log_path }}"
65 meraki_print_console: "{{ meraki_print_console }}"
66 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
67 meraki_simulate: "{{ meraki_simulate }}"
68 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
69 meraki_caller: "{{ meraki_caller }}"
70 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
71 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
72 id: '1284392014819'
73 networkId: string
74 pin: 123456
75 serial: XY0XX0Y0X0
76 wifiMac: 00:11:22:33:44:55
77 """
78 RETURN = r"""
79 meraki_response:
80 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
81 returned: always
82 type: dict
83 sample: >
84 {
85 "id": "string"
86 }
87 """