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