Fetching the current session
Fetching the current session
The session information for the current API user can be retrieved from this endpoint.
This information includes the current username and permissions.
Request
URI
GET
https://{opsmanager-installation}/api/v0/sessions/current
COPY
Responses
200
OK
Returns
Session
of type(s)
application/json
{
"session": {
"username": "string",
"permissions": {
"can_write": false
}
}
}
session
Optional
session
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/api/v0/sessions/current