I'm using the API https://developer.cisco.com/meraki/api/get-device-switch-ports-statuses/
want to pass timespan in the SDK after the switch serial
Status = dashboard.switch.getDeviceSwitchPortsStatuses(Serial)
how do I do that, please? I know the default is 1 day I want to change it to 30 days.
___
Below is my loop in SDK .
Devices = dashboard.organizations.getOrganizationDevices(org_id, total_pages='all')
for Device in Devices:
if Device['productType'] == 'switch':
Serial = Device['serial']
Status = dashboard.switch.getDeviceSwitchPortsStatuses(Serial)
print(Status)