MSA Storage
1751937 Members
4577 Online
108783 Solutions
New Discussion юеВ

For HP MSA SAN how to deactivate a session created after successful login over HTTP

 
SOLVED
Go to solution
sjose1x
Occasional Advisor

For HP MSA SAN how to deactivate a session created after successful login over HTTP

From the documents of 1040/2040 or 1050/2050

using below method its possible to create a successfull session

To login to the HTTPS API, the username and password must be joined with an underscore as a separator (username_password) and then sent through a SHA256 hash. The SHA256 hash is represented in lower case hexadecimal format. This string is appended to the login function for the API, https://IP-address/api/login/hash. For example: https://10.0.0.2/api/login/539e12f63b693a9970a97b885e857f8b

How to perform signout operation using API..?

 

I could not find a logout section in the document, other than the session will be deactivated after 30 minutes of inactivity

10 REPLIES 10
Max Sorokin
Regular Advisor

Re: For HP MSA SAN how to deactivate a session created after successful login..

sjose1x
Occasional Advisor

Re: For HP MSA SAN how to deactivate a session created after successful login..

There are nothing mentioned regarding Signout operation, its all about how to access API

ArunKKR
HPE Pro

Re: For HP MSA SAN how to deactivate a session created after successful login..

Hi,

 

Both the commands listed below  disconnects SSH session :

 

logout

exit

 


While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company

Accept or Kudo

sjose1x
Occasional Advisor

Re: For HP MSA SAN how to deactivate a session created after successful login over HTTP

The ask is over session created using HTTP login method.

Please help over there..

ArunKKR
HPE Pro

Re: For HP MSA SAN how to deactivate a session created after successful login over HTTP

Hi, 

 

I am afraid,  I do not have the expertise on API scripting.

 

Does using logout or exit instead of  keyword "login" in below format help?

 

https://10.0.0.2/api/login/539e12f63b693a9970a97b885e857f8b


While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company

Accept or Kudo

ArunKKR
HPE Pro

Re: For HP MSA SAN how to deactivate a session created after successful login over HTTP

Hi,

 

Please let us know whether the information shared in previous post helped.


While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company

Accept or Kudo

sjose1x
Occasional Advisor

Re: For HP MSA SAN how to deactivate a session created after successful login over HTTP

https://10.0.0.2/api/logout

happen to be sucessfull but still the session  is active

ArunKKR
HPE Pro
Solution

Re: For HP MSA SAN how to deactivate a session created after successful login over HTTP

Hi,

 

Does the session end if you add the session id?

 

ex: https://10.0.0.2/api/logout/539e12f63b693a9970a97b885e857f8b

 

https://10.0.0.2/api/exit/539e12f63b693a9970a97b885e857f8b

 


While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company

Accept or Kudo

ArunKKR
HPE Pro

Re: For HP MSA SAN how to deactivate a session created after successful login over HTTP

Hi,

 

Please let us know whether adding session id helped.


While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company

Accept or Kudo