cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4844
Views
2
Helpful
4
Replies

Organization with ID does not support per-device licensing

Chris-CCO
Visitor

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

1 Accepted Solution

Accepted Solutions

jonhar
Cisco Employee
Cisco Employee

The licensing endpoints aren't supported with organizations that use co-termination licensing. They are only for per-device licensing organizations.

View solution in original post

4 Replies 4

jonhar
Cisco Employee
Cisco Employee

The licensing endpoints aren't supported with organizations that use co-termination licensing. They are only for per-device licensing organizations.

tyoung008
Level 3
Level 3

Hi @Chris-CCO and @jonhar ,

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

gini
Community Member

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.