Hi,
im Trying to filter devices out of the org based on a network id but the output keeps printing the whole org. i have tried different variations to see if it will filter but i cant get it to work. has anyone else experienced this? i can get the devices of the network when i run it through postman but when i use the meraki python sdk it outputs the whole org instead of devices from the network id.
i have tried:
network_ids = ['**********']
org_id = "**************"
try:
response = dashboard.organizations.getOrganizationDevices(
org_id,
params={
'networkIds[]': [network_ids],
}
)
print(response)
except ValueError as ve:
print(f"Value Error: {ve}")
network_ids = '**********'
org_id = "**************"
try:
response = dashboard.organizations.getOrganizationDevices(
org_id,
params={
'networkIds[]': [network_ids],
}
)
print(response)
except ValueError as ve:
print(f"Value Error: {ve}")
----------------------------------------------------------------------------------------
network_ids = ['**********']
org_id = "**************"
try:
response = dashboard.organizations.getOrganizationDevices(
org_id,network_ids
)
print(response)
except ValueError as ve:
print(f"Value Error: {ve}")
--------------------------------------------------------------------------------------
network_ids = ['**********']
org_id = "**************"
try:
response = dashboard.organizations.getOrganizationDevices(
org_id,
params={
'networkIds': [network_ids],
}
)
print(response)
except ValueError as ve:
print(f"Value Error: {ve}")
-----------------------------------------------------------------------------------------------
network_ids = ['**********']
org_id = "**************"
try:
response = dashboard.organizations.getOrganizationDevices(
org_id,network_id
)
print(response)
except ValueError as ve:
print(f"Value Error: {ve}")
Any suggestions appreciated.