Claim of devices gives an error in Python

SOLVED
Edgar-VO
Building a reputation

Claim of devices gives an error in Python

Hi There,

 

I am using Python and Meraki API to write scripts to male life easier. I am trying to add serials/devices to my organization but it fails with a connect error in the API. This is weird cause i can make networks and other stuff in my organisaton.

 

I wrote a function to add a serial 

 

def Claim_Org_Device(def_org,def_serial😞

my_serial = {}
my_list = []
my_list.append(def_serial)
 
my_serial['serials'] = my_list
 
print(my_serial)
response = dashboard.organizations.claimOrganization(def_org,**my_serial)
 
#
# Main
#
 
dashboard = meraki.DashboardAPI(api_key)
 
Claim_Org_Device(<org_id>,"XXXX-XXXX-XXXX😞
 
The API returns :
 
meraki: WARNING > Organizations, claimOrganization - No connection adapters were found for '/organizations/[{'id': 'XXXXXX', 'name': 'Org - Name', 'url': 'https://nxxxx.meraki.com/o/ARYZ_c/manage/organization/overview'}]/claim', retrying in 1 second
 
Is this a bug in the meraki API ?
1 ACCEPTED SOLUTION
Edgar-VO
Building a reputation

Solved it

 

No issues, just a glitch in my programming

View solution in original post

1 REPLY 1
Edgar-VO
Building a reputation

Solved it

 

No issues, just a glitch in my programming

Get notified when there are additional replies to this discussion.