Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_live_tools_arp_table.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_arp_table
9 short_description: Resource module for devices _livetools _arptable
10 description:
11 - Manage operation create of the resource devices _livetools _arptable.
12 - >
13 Enqueue a job to perform a ARP table request for the device. This endpoint currently
14 supports switches, wireless access points, and catalyst routers. This endpoint
15 has a sustained rate limit of one request every five seconds per device, with
16 an allowed burst of five requests.
17 version_added: '1.0.0'
18 extends_documentation_fragment:
19 - cisco.meraki.module
20 author: Francisco Munoz (@fmunoz)
21 options:
22 callback:
23 description: Details for the callback. Please include either an httpServerId OR
24 url and sharedSecret.
25 suboptions:
26 httpServer:
27 description: The webhook receiver used for the callback webhook.
28 suboptions:
29 id:
30 description: The webhook receiver ID that will receive information. If
31 specifying this, please leave the url and sharedSecret fields blank.
32 type: str
33 type: dict
34 payloadTemplate:
35 description: The payload template of the webhook used for the callback.
36 suboptions:
37 id:
38 description: The ID of the payload template. Defaults to 'wpt_00005' for
39 the Callback (included) template.
40 type: str
41 type: dict
42 sharedSecret:
43 description: A shared secret that will be included in the requests sent to
44 the callback URL. It can be used to verify that the request was sent by
45 Meraki. If using this field, please also specify an url.
46 type: str
47 url:
48 description: The callback URL for the webhook target. If using this field,
49 please also specify a sharedSecret.
50 type: str
51 type: dict
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 createDeviceLiveToolsArpTable
60 description: Complete reference of the createDeviceLiveToolsArpTable API.
61 link: https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-arp-table
62 notes:
63 - SDK Method used are
64 devices.Devices.create_device_live_tools_arp_table,
65 - Paths used are
66 post /devices/{serial}/liveTools/arpTable,
67 """
68
69 EXAMPLES = r"""
70 - name: Create
71 cisco.meraki.devices_live_tools_arp_table:
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 serial: string
102 """
103 RETURN = r"""
104 meraki_response:
105 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
106 returned: always
107 type: dict
108 sample: >
109 {
110 "arpTableId": "string",
111 "url": "string",
112 "request": {
113 "serial": "string"
114 },
115 "status": "string",
116 "callback": {
117 "id": "string",
118 "url": "string",
119 "status": "string"
120 }
121 }
122 """