Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_sm_devices_lock.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_lock
9 short_description: Resource module for networks _sm _devices _lock
10 description:
11 - Manage operation create of the resource networks _sm _devices _lock.
12 - Lock a set of devices.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 ids:
19 description: The ids of the devices to be locked.
20 elements: str
21 type: list
22 networkId:
23 description: NetworkId path parameter. Network ID.
24 type: str
25 pin:
26 description: The pin number for locking macOS devices (a six digit number). Required
27 only for macOS devices.
28 type: int
29 scope:
30 description: The scope (one of all, none, withAny, withAll, withoutAny, or withoutAll)
31 and a set of tags of the devices to be locked.
32 elements: str
33 type: list
34 serials:
35 description: The serials of the devices to be locked.
36 elements: str
37 type: list
38 wifiMacs:
39 description: The wifiMacs of the devices to be locked.
40 elements: str
41 type: list
42 requirements:
43 - meraki >= 2.4.9
44 - python >= 3.5
45 seealso:
46 - name: Cisco Meraki documentation for sm lockNetworkSmDevices
47 description: Complete reference of the lockNetworkSmDevices API.
48 link: https://developer.cisco.com/meraki/api-v1/#!lock-network-sm-devices
49 notes:
50 - SDK Method used are
51 sm.Sm.lock_network_sm_devices,
52 - Paths used are
53 post /networks/{networkId}/sm/devices/lock,
54 """
55
56 EXAMPLES = r"""
57 - name: Create
58 cisco.meraki.networks_sm_devices_lock:
59 meraki_api_key: "{{ meraki_api_key }}"
60 meraki_base_url: "{{ meraki_base_url }}"
61 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
62 meraki_certificate_path: "{{ meraki_certificate_path }}"
63 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
64 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
65 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
66 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
67 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
68 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
69 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
70 meraki_output_log: "{{ meraki_output_log }}"
71 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
72 meraki_log_path: "{{ meraki_log_path }}"
73 meraki_print_console: "{{ meraki_print_console }}"
74 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
75 meraki_simulate: "{{ meraki_simulate }}"
76 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
77 meraki_caller: "{{ meraki_caller }}"
78 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
79 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
80 ids:
81 - '1284392014819'
82 - '2983092129865'
83 networkId: string
84 pin: 123456
85 scope:
86 - withAny
87 - tag1
88 - tag2
89 serials:
90 - XY0XX0Y0X0
91 - A01B01CD00E
92 - X02YZ1ZYZX
93 wifiMacs:
94 - 00:11:22:33:44:55
95 """
96 RETURN = r"""
97 meraki_response:
98 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
99 returned: always
100 type: dict
101 sample: >
102 {
103 "ids": [
104 "string"
105 ]
106 }
107 """