Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_live_tools_leds_blink.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: devices_live_tools_leds_blink
9 short_description: Resource module for devices _live _tools _leds _blink
10 description:
11 - Manage operation create of the resource devices _live _tools _leds _blink.
12 - Enqueue a job to blink LEDs on a device. This endpoint has a rate limit of one
13 request every 10 seconds.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module
17 author: Francisco Munoz (@fmunoz)
18 options:
19 callback:
20 description: Details for the callback. Please include either an httpServerId OR
21 url and sharedSecret.
22 suboptions:
23 httpServer:
24 description: The webhook receiver used for the callback webhook.
25 suboptions:
26 id:
27 description: The webhook receiver ID that will receive information. If
28 specifying this, please leave the url and sharedSecret fields blank.
29 type: str
30 type: dict
31 payloadTemplate:
32 description: The payload template of the webhook used for the callback.
33 suboptions:
34 id:
35 description: The ID of the payload template. Defaults to 'wpt_00005' for
36 the Callback (included) template.
37 type: str
38 type: dict
39 sharedSecret:
40 description: A shared secret that will be included in the requests sent to
41 the callback URL. It can be used to verify that the request was sent by
42 Meraki. If using this field, please also specify an url.
43 type: str
44 url:
45 description: The callback URL for the webhook target. If using this field,
46 please also specify a sharedSecret.
47 type: str
48 type: dict
49 duration:
50 description: The duration in seconds to blink LEDs.
51 type: int
52 serial:
53 description: Serial path parameter.
54 type: str
55 requirements:
56 - meraki >= 2.4.9
57 - python >= 3.5
58 seealso:
59 - name: Cisco Meraki documentation for devices createDeviceLiveToolsLedsBlink
60 description: Complete reference of the createDeviceLiveToolsLedsBlink API.
61 link: https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-leds-blink
62 notes:
63 - SDK Method used are
64 devices.Devices.create_device_live_tools_leds_blink,
65 - Paths used are
66 post /devices/{serial}/liveTools/leds/blink,
67 """
68
69 EXAMPLES = r"""
70 - name: Create
71 cisco.meraki.devices_live_tools_leds_blink:
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 state: present
94 callback:
95 httpServer:
96 id: aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vd2ViaG9va3M=
97 payloadTemplate:
98 id: wpt_2100
99 sharedSecret: secret
100 url: https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031
101 duration: 30
102 serial: string
103 """
104 RETURN = r"""
105 meraki_response:
106 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
107 returned: always
108 type: dict
109 sample: >
110 {
111 "ledsBlinkId": "string",
112 "url": "string",
113 "status": "string",
114 "request": {
115 "serial": "string",
116 "duration": 0
117 },
118 "error": "string",
119 "callback": {
120 "id": "string",
121 "url": "string",
122 "status": "string"
123 }
124 }
125 """