Debian Codegraph @

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