Ops Center

 Workflow fail due to session expire

Niranjan Thilakarathna's profile image
Niranjan Thilakarathna posted 06-15-2023 09:47

Hello,

I have configured Configuration Manager REST API 1.34.0 with two VspG350 storages. It works with my local environment but does not work with the testing environment.

See err.png for error:

It occurred when the workflow try to connect with the storage system. 
I have tried below steps:

  1. Stop the API and start it again and tried.
  2. Also view the sessions in the server [http://{ip:port}/ConfigurationManager/v1/objects/storages/882000452540/sessions]. It returns an empty list
  3. Created a new session and discarded it.

Please help me to eliminate the issue.

Thank You.

Attachment  View in library
err.png 54 KB
Ross Britt's profile image
Ross Britt

Hi Niranjan, 

Are you specifying an alive time parameter in the body of your request? 

example: 

{

     "aliveTime" : 5

}

That should generate the session token.  Once you have the token you can use it in the authorization header. 

-r