Organization with ID does not support per-device licensing

Solved
ChristianCa
Conversationalist

Organization with ID does not support per-device licensing

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
Jon_Hartman
Meraki Employee
Meraki 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
Jon_Hartman
Meraki Employee
Meraki Employee

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

tyoung
Here to help

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

Gini_Dev_Team
Here to help

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

tyoung
Here to help

You're welcome!

 

If you are interested in my Python script, send your email to me in a direct message.

Get notified when there are additional replies to this discussion.