Hello,
I am trying to use the following API
https://api.meraki.com/api/v0/organizations/{organizationId}/licenses
Of course I replace the {organizationId} by one of my client
However I receive the following response
{
"errors": [
"Organization with ID {organizationId} does not support per-device licensing"
]
}
Please advice
Thanks & Regards
Christian
Solved! Go to solution.
The licensing endpoints aren't supported with organizations that use co-termination licensing. They are only for per-device licensing organizations.
The licensing endpoints aren't supported with organizations that use co-termination licensing. They are only for per-device licensing organizations.
Hi @ChristianCa and @Jon_Hartman ,
I ran into this same problem retrieving licenses for my clients.
You can get license info for co-term licenses with these URLs depending on your version:
https://api.meraki.com/api/v0/organizations/{organizationId}/licenseState
https://api.meraki.com/api/v1/organizations/{organizationId}/licenses/overview
For my script, I get the initial list of orgs, and then for each organization I check org_dict['licensing']['model'] == 'co-term'. (The var org_dict is my own.) If it matches, I use the co-term URL, else I use your URL to get the license info.
Thanks,
Tom
Hi Tom,
Thank you very much for your sharing !
In fact, in 2020 (date of the initial post) the https://api.meraki.com/api/v1/organizations/
response didn't contain any ['licensing']['model'] attribute.
Now it is possible and your proposal is elegant !
Thanks !
Christian
You're welcome!
If you are interested in my Python script, send your email to me in a direct message.