Vslm Session Manager Vslm Login By Token

Vslm Session Manager Vslm Login By Token

Login to the VSLM service by using SSO token.

VSLM will validate the user token from the context. The delegated token passed as a parameter will be used by VSLM to login to VC for authorization purposes. Once login successfully returns, a new session is established for the client. This session is only valid for the lifetime of the supplied delegated token. Any calls made on a session which exceeds this lifetime will result in a SecurityError. The client is expected to logout of the current session and subsequently re-login with a new delegated token to establish a new session.

Required privileges: System.Anonymous

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/vslm/VslmSessionManager/{moId}/VslmLoginByToken
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case VslmSessionManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.


Request Body
VslmLoginByTokenRequestType of type(s) application/json
Required
"VslmLoginByTokenRequestType Object"
string
delegatedTokenXml
Required

The delegated token will be retrieved by the client and delegated to VSLM. VSLM will use this token, on user's behalf, to login to VC for authorization purposes. It is necessary to convert the token to XML because the SAML token itself is not a VMODL Data Object and cannot be used as a parameter.

Authentication
This operation uses the following authentication methods.
Responses
204

No Content

Operation doesn't return any data structure

500

InvalidLogin: if there is no token provided or the token could not be validated.

Returns InvalidLogin of type(s) application/json
"InvalidLogin Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vslm/VslmSessionManager/{moId}/VslmLoginByToken