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://{api_host}/api/v0/sessions/current
COPY
Responses
200

OK

Returns GetVmTypes of type(s) application/json
{
    "vm_types": [
        {}
    ]
}
array of vm_types
vm_types
Optional

vm_types


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/api/v0/sessions/current