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
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}.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"VslmLoginByTokenRequestType Object"
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.
No Content
InvalidLogin: if there is no token provided or the token could not be validated.
"InvalidLogin Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vslm/VslmSessionManager/{moId}/VslmLoginByToken