Snapservice. Sessions Delete

Snapservice. Sessions Delete

Terminates the validity of a session token. This is the equivalent of log out.

A session token is expected as part of the request.

This operation was added in vSphere API 9.0.0.0.

Request
URI
DELETE
https://{host}/api/snapservice/sessions
COPY
Authentication
This operation uses the following authentication methods.
Responses
204

Success!

Operation doesn't return any data structure

401

if the session id is missing from the request or the corresponding session object cannot be found.

Returns Vapi.Std.Errors.Unauthenticated of type(s) application/json
"Vapi.Std.Errors.Unauthenticated Object"

503

if session deletion fails due to server specific issues, for example connection to a back end component is failing. Due to the security nature of this API further details will not be disclosed in the error. Please refer to component health information, administrative logs and product specific documentation for possible causes.

Returns Vapi.Std.Errors.ServiceUnavailable of type(s) application/json
"Vapi.Std.Errors.ServiceUnavailable Object"

Code Samples
COPY
                    curl -X DELETE -H 'Authorization: <value>' https://{api_host}/api/snapservice/sessions