Get Current Session

Get Current Session

Returns the specified session for the authorization token

Request
URI
GET
https://{api_host}/cloudapi/1.0.0/sessions/current
COPY
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns Session of type(s) application/json;version=38.1
{
    "id": "urn:vcloud:session:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "site": {
        "name": "string",
        "id": "string"
    },
    "user": {
        "name": "string",
        "id": "string"
    },
    "org": {
        "name": "string",
        "id": "string"
    },
    "operatingOrg": {
        "name": "string",
        "id": "string"
    },
    "location": "string",
    "roles": [
        "string"
    ],
    "roleRefs": [
        {
            "name": "string",
            "id": "string"
        }
    ],
    "sessionIdleTimeoutMinutes": 0
}
string
id
Optional

ID of session

site
Optional

site

user
Optional

user

org
Optional

org

operatingOrg
Optional

operatingOrg

string
location
Optional

The accessible location this session is valid for

array of string
roles
Optional

User's roles for this session

roleRefs
Optional

References to user's roles

integer
sessionIdleTimeoutMinutes
Optional

The session idle timeout in minutes