python-hpOneView icon indicating copy to clipboard operation
python-hpOneView copied to clipboard

Delete login sessions

Open VincentBerger opened this issue 8 years ago • 0 comments

Scenario/Intent

We should be able to delete login sessions used by this module

Environment Details

  • OneView SDK Version: 4.2.0
  • OneView Appliance Version: 3.10.04
  • OneView Client API Version: 500
  • Python Version: 2.7.9
  • Platform: SLES 12 SP2

Steps to Reproduce

There does not seem to be a function to logout a session (which would translate to DELETE on /rest/login-sessions with the auth header set to the session token)

Expected Result

I want to be able to clean up login sessions. Either explicitly with a logout function on the OneView client, and/or, better, automatically when the OneView client object is destroyed so that we don't rely on the script author remembering to write some cleanup code

Actual Result

Sessions are not logged out and remain in the OneView db. This has caused problems in the past, specifically: http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-a00021788en_us&sp4ts.oid=5410258

VincentBerger avatar Sep 20 '17 14:09 VincentBerger