Get Current Session
Returns the current session identified by credentials supplied using the Authorization header
Returns the specified session for the authorization token
Request
URI
GET
https://{api_host}/cloudapi/1.0.0/sessions/current
COPY
Responses
200
OK
Returns
Session
of type(s)
application/json;version=9.1.0
{
"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
}
Vendor Extension
This operation contains the following vendor extensions defined in the spec:
[{"type":"Classic"},{"type":"Modern"}]
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/cloudapi/1.0.0/sessions/current
Availability
Added in 34.0
Sessions Operations
GET
Get Current Sessions
POST
Login
GET
Get Session
DELETE
Logout
GET
Get Current Session
DELETE
Logout Current Session
GET
Get Current Session Rights