Session Manager Get Current Session

Session Manager Get Current Session

This property contains information about the client's current session.

If the client is not logged on, the value is null.

Required privileges: System.Anonymous

Request
URI
GET
https://{api_host}/sdk/vim25/{release}/SessionManager/{moId}/currentSession
COPY
Path Parameters
string
moId
Required

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

string
release
Required

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


Authentication
This operation uses the following authentication methods.
Responses
200

OK

This response body class contains all of the following: UserSession
{
    "0": "U",
    "1": "s",
    "2": "e",
    "3": "r",
    "4": "S",
    "5": "e",
    "6": "s",
    "7": "s",
    "8": "i",
    "9": "o",
    "10": "n",
    "11": " ",
    "12": "O",
    "13": "b",
    "14": "j",
    "15": "e",
    "16": "c",
    "17": "t"
}

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/SessionManager/{moId}/currentSession