cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
739
Views
7
Helpful
3
Replies

APIC-EM API concurrent sessions

Hi all,

  I was wondering if there is an upper limit on the number of authorization tokens (tickets), that a single user can create ? Similarily, is there a limitation of only a single call to certain API resource at a time ?

  I'm trying to manage PNP device configs using parallel API requests for each of the devices and I start getting "Not authorized" errors (HTTP error code 401) while doing requests in parallel. If fallbacking to calling API for each host in a serialized sequence - all the auth issues disappear.

thanks,

Vytautas

3 Replies 3

aradford
Cisco Employee
Cisco Employee

Hi Vytautas,

how many sessions are you running in parallel?

Just looking for an order of magnitude... 10,100, 1000?

Hi,

  I'm dealing with around 30 nodes at the moment, however I start hitting auth erros roughly at a number of 5. In a long term, there may be up to 200 sessions if no workaround is applied (I'm thinking of either introducing some batching to serialize the requests or just add code to retry the request upon such failure).

Vytautas

aradford
Cisco Employee
Cisco Employee

Most API are async to stop these types of issues.

What is the API that you are calling that fails?

Is it the /file API to upload configuration files?  If so, those are synchronous, and will have a limit.  You will need to batch them.