Skip to content

Commit 243922d

Browse files
TKIPisalegacycipherGitHub Action
andauthored
Automatically regenerated library. (#246)
API 1.43.0 Co-authored-by: GitHub Action <[email protected]>
1 parent 305d3d5 commit 243922d

23 files changed

+1534
-26
lines changed

meraki/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
)
4444
from meraki.rest_session import *
4545

46-
__version__ = '1.42.0'
46+
__version__ = '1.43.0'
4747

4848

4949
class DashboardAPI(object):

meraki/aio/api/appliance.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,6 +2472,25 @@ def getOrganizationApplianceUplinkStatuses(self, organizationId: str, total_page
24722472

24732473

24742474

2475+
def getOrganizationApplianceUplinksStatusesOverview(self, organizationId: str):
2476+
"""
2477+
**Returns an overview of uplink statuses**
2478+
https://developer.cisco.com/meraki/api-v1/#!get-organization-appliance-uplinks-statuses-overview
2479+
2480+
- organizationId (string): Organization ID
2481+
"""
2482+
2483+
metadata = {
2484+
'tags': ['appliance', 'configure', 'uplinks', 'statuses', 'overview'],
2485+
'operation': 'getOrganizationApplianceUplinksStatusesOverview'
2486+
}
2487+
organizationId = urllib.parse.quote(str(organizationId), safe='')
2488+
resource = f'/organizations/{organizationId}/appliance/uplinks/statuses/overview'
2489+
2490+
return self._session.get(metadata, resource)
2491+
2492+
2493+
24752494
def getOrganizationApplianceUplinksUsageByNetwork(self, organizationId: str, **kwargs):
24762495
"""
24772496
**Get the sent and received bytes for each uplink of all MX and Z networks within an organization**

meraki/aio/api/camera.py

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,68 @@ def deleteNetworkCameraWirelessProfile(self, networkId: str, wirelessProfileId:
718718

719719

720720

721+
def getOrganizationCameraBoundariesAreasByDevice(self, organizationId: str, **kwargs):
722+
"""
723+
**Returns all configured area boundaries of cameras**
724+
https://developer.cisco.com/meraki/api-v1/#!get-organization-camera-boundaries-areas-by-device
725+
726+
- organizationId (string): Organization ID
727+
- serials (array): A list of serial numbers. The returned cameras will be filtered to only include these serials.
728+
"""
729+
730+
kwargs.update(locals())
731+
732+
metadata = {
733+
'tags': ['camera', 'configure', 'boundaries', 'areas', 'byDevice'],
734+
'operation': 'getOrganizationCameraBoundariesAreasByDevice'
735+
}
736+
organizationId = urllib.parse.quote(str(organizationId), safe='')
737+
resource = f'/organizations/{organizationId}/camera/boundaries/areas/byDevice'
738+
739+
query_params = ['serials', ]
740+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
741+
742+
array_params = ['serials', ]
743+
for k, v in kwargs.items():
744+
if k.strip() in array_params:
745+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
746+
params.pop(k.strip())
747+
748+
return self._session.get(metadata, resource, params)
749+
750+
751+
752+
def getOrganizationCameraBoundariesLinesByDevice(self, organizationId: str, **kwargs):
753+
"""
754+
**Returns all configured crossingline boundaries of cameras**
755+
https://developer.cisco.com/meraki/api-v1/#!get-organization-camera-boundaries-lines-by-device
756+
757+
- organizationId (string): Organization ID
758+
- serials (array): A list of serial numbers. The returned cameras will be filtered to only include these serials.
759+
"""
760+
761+
kwargs.update(locals())
762+
763+
metadata = {
764+
'tags': ['camera', 'configure', 'boundaries', 'lines', 'byDevice'],
765+
'operation': 'getOrganizationCameraBoundariesLinesByDevice'
766+
}
767+
organizationId = urllib.parse.quote(str(organizationId), safe='')
768+
resource = f'/organizations/{organizationId}/camera/boundaries/lines/byDevice'
769+
770+
query_params = ['serials', ]
771+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
772+
773+
array_params = ['serials', ]
774+
for k, v in kwargs.items():
775+
if k.strip() in array_params:
776+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
777+
params.pop(k.strip())
778+
779+
return self._session.get(metadata, resource, params)
780+
781+
782+
721783
def getOrganizationCameraCustomAnalyticsArtifacts(self, organizationId: str):
722784
"""
723785
**List Custom Analytics Artifacts**
@@ -804,6 +866,42 @@ def deleteOrganizationCameraCustomAnalyticsArtifact(self, organizationId: str, a
804866

805867

806868

869+
def getOrganizationCameraDetectionsHistoryByBoundaryByInterval(self, organizationId: str, boundaryIds: list, total_pages=1, direction='next', **kwargs):
870+
"""
871+
**Returns analytics data for timespans**
872+
https://developer.cisco.com/meraki/api-v1/#!get-organization-camera-detections-history-by-boundary-by-interval
873+
874+
- organizationId (string): Organization ID
875+
- boundaryIds (array): A list of boundary ids. The returned cameras will be filtered to only include these ids.
876+
- total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages
877+
- direction (string): direction to paginate, either "next" (default) or "prev" page
878+
- duration (integer): The minimum time, in seconds, that the person or car remains in the area to be counted. Defaults to boundary configuration or 60.
879+
- perPage (integer): The number of entries per page returned. Acceptable range is 1 - 1000. Defaults to 1000.
880+
- boundaryTypes (array): The detection types. Defaults to 'person'.
881+
"""
882+
883+
kwargs.update(locals())
884+
885+
metadata = {
886+
'tags': ['camera', 'configure', 'detections', 'history', 'byBoundary', 'byInterval'],
887+
'operation': 'getOrganizationCameraDetectionsHistoryByBoundaryByInterval'
888+
}
889+
organizationId = urllib.parse.quote(str(organizationId), safe='')
890+
resource = f'/organizations/{organizationId}/camera/detections/history/byBoundary/byInterval'
891+
892+
query_params = ['boundaryIds', 'duration', 'perPage', 'boundaryTypes', ]
893+
params = {k.strip(): v for k, v in kwargs.items() if k.strip() in query_params}
894+
895+
array_params = ['boundaryIds', 'boundaryTypes', ]
896+
for k, v in kwargs.items():
897+
if k.strip() in array_params:
898+
params[f'{k.strip()}[]'] = kwargs[f'{k}']
899+
params.pop(k.strip())
900+
901+
return self._session.get_pages(metadata, resource, params, total_pages, direction)
902+
903+
904+
807905
def getOrganizationCameraOnboardingStatuses(self, organizationId: str, **kwargs):
808906
"""
809907
**Fetch onboarding status of cameras**

meraki/aio/api/devices.py

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,99 @@ def getDeviceClients(self, serial: str, **kwargs):
158158

159159

160160

161+
def createDeviceLiveToolsArpTable(self, serial: str, **kwargs):
162+
"""
163+
**Enqueue a job to perform a ARP table request for the device**
164+
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-arp-table
165+
166+
- serial (string): Serial
167+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
168+
"""
169+
170+
kwargs.update(locals())
171+
172+
metadata = {
173+
'tags': ['devices', 'liveTools', 'arpTable'],
174+
'operation': 'createDeviceLiveToolsArpTable'
175+
}
176+
serial = urllib.parse.quote(str(serial), safe='')
177+
resource = f'/devices/{serial}/liveTools/arpTable'
178+
179+
body_params = ['callback', ]
180+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
181+
182+
return self._session.post(metadata, resource, payload)
183+
184+
185+
186+
def getDeviceLiveToolsArpTable(self, serial: str, arpTableId: str):
187+
"""
188+
**Return an ARP table live tool job.**
189+
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-arp-table
190+
191+
- serial (string): Serial
192+
- arpTableId (string): Arp table ID
193+
"""
194+
195+
metadata = {
196+
'tags': ['devices', 'liveTools', 'arpTable'],
197+
'operation': 'getDeviceLiveToolsArpTable'
198+
}
199+
serial = urllib.parse.quote(str(serial), safe='')
200+
arpTableId = urllib.parse.quote(str(arpTableId), safe='')
201+
resource = f'/devices/{serial}/liveTools/arpTable/{arpTableId}'
202+
203+
return self._session.get(metadata, resource)
204+
205+
206+
207+
def createDeviceLiveToolsCableTest(self, serial: str, ports: list, **kwargs):
208+
"""
209+
**Enqueue a job to perform a cable test for the device on the specified ports.**
210+
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-cable-test
211+
212+
- serial (string): Serial
213+
- ports (array): A list of ports for which to perform the cable test.
214+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
215+
"""
216+
217+
kwargs.update(locals())
218+
219+
metadata = {
220+
'tags': ['devices', 'liveTools', 'cableTest'],
221+
'operation': 'createDeviceLiveToolsCableTest'
222+
}
223+
serial = urllib.parse.quote(str(serial), safe='')
224+
resource = f'/devices/{serial}/liveTools/cableTest'
225+
226+
body_params = ['ports', 'callback', ]
227+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
228+
229+
return self._session.post(metadata, resource, payload)
230+
231+
232+
233+
def getDeviceLiveToolsCableTest(self, serial: str, id: str):
234+
"""
235+
**Return a cable test live tool job.**
236+
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-cable-test
237+
238+
- serial (string): Serial
239+
- id (string): ID
240+
"""
241+
242+
metadata = {
243+
'tags': ['devices', 'liveTools', 'cableTest'],
244+
'operation': 'getDeviceLiveToolsCableTest'
245+
}
246+
serial = urllib.parse.quote(str(serial), safe='')
247+
id = urllib.parse.quote(str(id), safe='')
248+
resource = f'/devices/{serial}/liveTools/cableTest/{id}'
249+
250+
return self._session.get(metadata, resource)
251+
252+
253+
161254
def createDeviceLiveToolsPing(self, serial: str, target: str, **kwargs):
162255
"""
163256
**Enqueue a job to ping a target host from the device**
@@ -253,6 +346,100 @@ def getDeviceLiveToolsPingDevice(self, serial: str, id: str):
253346

254347

255348

349+
def createDeviceLiveToolsThroughputTest(self, serial: str, **kwargs):
350+
"""
351+
**Enqueue a job to test a device throughput, the test will run for 10 secs to test throughput**
352+
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-throughput-test
353+
354+
- serial (string): Serial
355+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
356+
"""
357+
358+
kwargs.update(locals())
359+
360+
metadata = {
361+
'tags': ['devices', 'liveTools', 'throughputTest'],
362+
'operation': 'createDeviceLiveToolsThroughputTest'
363+
}
364+
serial = urllib.parse.quote(str(serial), safe='')
365+
resource = f'/devices/{serial}/liveTools/throughputTest'
366+
367+
body_params = ['callback', ]
368+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
369+
370+
return self._session.post(metadata, resource, payload)
371+
372+
373+
374+
def getDeviceLiveToolsThroughputTest(self, serial: str, throughputTestId: str):
375+
"""
376+
**Return a throughput test job**
377+
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-throughput-test
378+
379+
- serial (string): Serial
380+
- throughputTestId (string): Throughput test ID
381+
"""
382+
383+
metadata = {
384+
'tags': ['devices', 'liveTools', 'throughputTest'],
385+
'operation': 'getDeviceLiveToolsThroughputTest'
386+
}
387+
serial = urllib.parse.quote(str(serial), safe='')
388+
throughputTestId = urllib.parse.quote(str(throughputTestId), safe='')
389+
resource = f'/devices/{serial}/liveTools/throughputTest/{throughputTestId}'
390+
391+
return self._session.get(metadata, resource)
392+
393+
394+
395+
def createDeviceLiveToolsWakeOnLan(self, serial: str, vlanId: int, mac: str, **kwargs):
396+
"""
397+
**Enqueue a job to send a Wake-on-LAN packet from the device**
398+
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-wake-on-lan
399+
400+
- serial (string): Serial
401+
- vlanId (integer): The target's VLAN (1 to 4094)
402+
- mac (string): The target's MAC address
403+
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
404+
"""
405+
406+
kwargs.update(locals())
407+
408+
metadata = {
409+
'tags': ['devices', 'liveTools', 'wakeOnLan'],
410+
'operation': 'createDeviceLiveToolsWakeOnLan'
411+
}
412+
serial = urllib.parse.quote(str(serial), safe='')
413+
resource = f'/devices/{serial}/liveTools/wakeOnLan'
414+
415+
body_params = ['vlanId', 'mac', 'callback', ]
416+
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}
417+
418+
return self._session.post(metadata, resource, payload)
419+
420+
421+
422+
def getDeviceLiveToolsWakeOnLan(self, serial: str, wakeOnLanId: str):
423+
"""
424+
**Return a Wake-on-LAN job**
425+
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-wake-on-lan
426+
427+
- serial (string): Serial
428+
- wakeOnLanId (string): Wake on lan ID
429+
"""
430+
431+
metadata = {
432+
'tags': ['devices', 'liveTools', 'wakeOnLan'],
433+
'operation': 'getDeviceLiveToolsWakeOnLan'
434+
}
435+
serial = urllib.parse.quote(str(serial), safe='')
436+
wakeOnLanId = urllib.parse.quote(str(wakeOnLanId), safe='')
437+
resource = f'/devices/{serial}/liveTools/wakeOnLan/{wakeOnLanId}'
438+
439+
return self._session.get(metadata, resource)
440+
441+
442+
256443
def getDeviceLldpCdp(self, serial: str):
257444
"""
258445
**List LLDP and CDP information for a device**

0 commit comments

Comments
 (0)