Get Session
This request returns the session that is currently authenticated.
Operation ID for correlating logs across multiple services
OK
{
"authenticatedSites": [
{
"org": "Org1",
"site": "site1"
}
],
"roles": [
"EVERYONE"
],
"user": "admin1@Org1"
}
VMware Cloud Director sites the current session has authenticated with. The site specified in the request should be present here
Roles granted to the session
The currently authenticated user
The returned error codes include (but are not limited to):
- NotAuthenticated
{
"args": [],
"code": "Forbidden",
"msg": "Permission denied.",
"stacktrace": "com.vmware.h4.api.error.exceptions.PermissionDeniedException: Permission denied."
}
Positional arguments.
Specific error code.
Detailed error message.
Exception stacktrace.
The returned error codes include (but are not limited to):
- GeneralServerFailure
{
"args": [],
"code": "Forbidden",
"msg": "Permission denied.",
"stacktrace": "com.vmware.h4.api.error.exceptions.PermissionDeniedException: Permission denied."
}
Positional arguments.
Specific error code.
Detailed error message.
Exception stacktrace.