| 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_reboot |
| 9 |
short_description: Resource module for networks _sm _devices _reboot |
| 10 |
description: |
| 11 |
- Manage operation create of the resource networks _sm _devices _reboot. |
| 12 |
- Reboot a set of endpoints. |
| 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 endpoints to be rebooted. |
| 20 |
elements: str |
| 21 |
type: list |
| 22 |
kextPaths: |
| 23 |
description: The KextPaths of the endpoints to be rebooted. Available for macOS |
| 24 |
11+. |
| 25 |
elements: str |
| 26 |
type: list |
| 27 |
networkId: |
| 28 |
description: NetworkId path parameter. Network ID. |
| 29 |
type: str |
| 30 |
notifyUser: |
| 31 |
description: Whether or not to notify the user before rebooting the endpoint. |
| 32 |
Available for macOS 11.3+. |
| 33 |
type: bool |
| 34 |
rebuildKernelCache: |
| 35 |
description: Whether or not to rebuild the kernel cache when rebooting the endpoint. |
| 36 |
Available for macOS 11+. |
| 37 |
type: bool |
| 38 |
requestRequiresNetworkTether: |
| 39 |
description: Whether or not the request requires network tethering. Available |
| 40 |
for macOS and supervised iOS or tvOS. |
| 41 |
type: bool |
| 42 |
scope: |
| 43 |
description: The scope (one of all, none, withAny, withAll, withoutAny, or withoutAll) |
| 44 |
and a set of tags of the endpoints to be rebooted. |
| 45 |
elements: str |
| 46 |
type: list |
| 47 |
serials: |
| 48 |
description: The serials of the endpoints to be rebooted. |
| 49 |
elements: str |
| 50 |
type: list |
| 51 |
wifiMacs: |
| 52 |
description: The wifiMacs of the endpoints to be rebooted. |
| 53 |
elements: str |
| 54 |
type: list |
| 55 |
requirements: |
| 56 |
- meraki >= 2.4.9 |
| 57 |
- python >= 3.5 |
| 58 |
seealso: |
| 59 |
- name: Cisco Meraki documentation for sm rebootNetworkSmDevices |
| 60 |
description: Complete reference of the rebootNetworkSmDevices API. |
| 61 |
link: https://developer.cisco.com/meraki/api-v1/#!reboot-network-sm-devices |
| 62 |
notes: |
| 63 |
- SDK Method used are |
| 64 |
sm.Sm.reboot_network_sm_devices, |
| 65 |
- Paths used are |
| 66 |
post /networks/{networkId}/sm/devices/reboot, |
| 67 |
""" |
| 68 |
|
| 69 |
EXAMPLES = r""" |
| 70 |
- name: Create |
| 71 |
cisco.meraki.networks_sm_devices_reboot: |
| 72 |
meraki_api_key: "{{ meraki_api_key }}" |
| 73 |
meraki_base_url: "{{ meraki_base_url }}" |
| 74 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 75 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 76 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 77 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 78 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 79 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 80 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 81 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 82 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 83 |
meraki_output_log: "{{ meraki_output_log }}" |
| 84 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 85 |
meraki_log_path: "{{ meraki_log_path }}" |
| 86 |
meraki_print_console: "{{ meraki_print_console }}" |
| 87 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 88 |
meraki_simulate: "{{ meraki_simulate }}" |
| 89 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 90 |
meraki_caller: "{{ meraki_caller }}" |
| 91 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 92 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 93 |
ids: |
| 94 |
- '1284392014819' |
| 95 |
- '2983092129865' |
| 96 |
kextPaths: |
| 97 |
- test |
| 98 |
networkId: string |
| 99 |
notifyUser: true |
| 100 |
rebuildKernelCache: true |
| 101 |
requestRequiresNetworkTether: true |
| 102 |
scope: |
| 103 |
- withAny |
| 104 |
- tag1 |
| 105 |
- tag2 |
| 106 |
serials: |
| 107 |
- XY0XX0Y0X0 |
| 108 |
- A01B01CD00E |
| 109 |
- X02YZ1ZYZX |
| 110 |
wifiMacs: |
| 111 |
- 00:11:22:33:44:55 |
| 112 |
""" |
| 113 |
RETURN = r""" |
| 114 |
meraki_response: |
| 115 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 116 |
returned: always |
| 117 |
type: dict |
| 118 |
sample: > |
| 119 |
{ |
| 120 |
"ids": [ |
| 121 |
"string" |
| 122 |
] |
| 123 |
} |
| 124 |
""" |