Dashboard API v0 organisations issue

bipsen
Conversationalist

Dashboard API v0 organisations issue

Hi

 

 The license for one of our customers has expired - and suddenly our API requests to https://api.meraki.com/api/v0/organizations fails with the message:

 

{

"errors": [
"Meraki API services are available for licensed Meraki devices only. Please contact Meraki support. To renew your licenses, go to 'https://n213.meraki.com/o/NpCFHcvd/manage/dashboard/license_info'"
]

}

 

This is not optimal - as I would assume I should be able to get a list of all active/valid organisations accessible by my API key...

 

A bug in the API - or will I need another approach to get a list of organisations ?

 

Regards

Brian

 

6 Replies 6
GreenMan
Meraki Employee
Meraki Employee

As API is based around the Administrator - which can be for multiple Orgs, some in and some out of compliance, so I would agree this should work.

Did you try using the v1 endpoint?  https://developer.cisco.com/meraki/api-v1/#!get-organizations

Bear in mind that v0 was deprecated in August, so a backwardly-compatible fix may not be implemented, particularly if the v1 call works.

bipsen
Conversationalist

Hi

 

 I tried the v1 call - same result.

 

Regards

Brian

 

Greenberet
Head in the Cloud

In this case I would open a case within the dashboard, so that the backend team can look into it.

bipsen
Conversationalist

Got a reply on my support case:

 

If the user is authorizing via API key then the issue that you are experiencing is an expecting behavior. In order to resolve the problem you will need to revoke your API key and turn off API access for the organization.

 

Not quite the solution I was hoping for 😕

 

@GreenMan - undesirable behavior by the API ?

 

 

PhilipDAth
Kind of a big deal
Kind of a big deal

I agree.  This is undesirable.

 

Just because one org that you have access to has an expired licence key should not prevent you from retrieving a list of all orgs.

 

Imagine you are providing a SaaS style service to your customers.   You have 100,000 customers.  One of those customers licence expires.  You have no access to their dashboard to change anything.  Suddenly you lose access to all 100,000 customers and your entire business comes to an end.

 

@chengineer , would it be possible to allow the call to get a list of organisations to always work, regardless of the licence state of a single org?

PhilipDAth
Kind of a big deal
Kind of a big deal

I just read another interesting thread about IP address restrictions (have not tried this myself).

 

If one of the orgs has an IP address restriction configured in the dashboard then it also blocks you from retrieving the list of orgs (if you are retrieving the list from an IP not in that list).

Get notified when there are additional replies to this discussion.