cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
597
Views
0
Helpful
0
Replies

How to maintain APIC Session between 2 Cobra python scripts

Mathieu M
Level 1
Level 1

Hello all,

 

Using the Cobra SDK, how is it possible to re-use an already established APIC Session ?

 

The main use case is :

1/ First using a script to create a session, that would perform the login (so that I ask the password, once)

2/ Run several and independant python scripts to perform different tasks reusing the previously created session (without storing the password in a script or in a environment variable).

 

Using plain REST API, it is possible to re-use the session cookie.

How is it possible with the Cobra SDK ?

 

Thank you in advance for any hint,

Sincerely yours, Mathieu.

0 Replies 0

Save 25% on Day-2 Operations Add-On License