[{"label":"Latest (v37.0)","version":"latest"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Get Current Session

Description

Returns the specified session for the authorization token

Request

Request

URL

URL


get
https://{api_host}/cloudapi/1.0.0/sessions/current
Copy

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns Session of type(s) application/json;version=37.0
{
    "id": "urn:vcloud:session:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
string
id Optional

ID of session


string
location Optional

The accessible location this session is valid for


org Optional

Organization user is logged into for this session


array of EntityReference
roleRefs Optional

References to user’s roles


array of string
roles Optional

User’s roles for this session


integer
sessionIdleTimeoutMinutes Optional

The session idle timeout in minutes


user Optional

User of this session

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl https://{api_host}/cloudapi/1.0.0/sessions/current


[{"label":"Latest (v37.0)","version":"latest"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Availability
Added in 34.0
Sessions Operations
Feedback

Was this page helpful?