Extend
To perform replication management operations for remote sites, provide the session with credentials (VMware Cloud Director auth cookie or access token or org user and password) for the specified remote site. The supported authentication methods are the following:
- with VMware Cloud Director credentials:
{ "type": "credentials", "site": "site1", "vcdUsername": "admin1@org2", "vcdPassword": "password" }
- with VMware Cloud Director auth cookie:
{ "type": "cookie", "site": "site1", "cookie": "f12977876fef48a6b032ffdb2cdf22d7" }
- with VMware Cloud Director access token (jwt):
{ "type": "vcdAccessToken", "site": "site1", "vcdAccessToken": "eyJhbGciOiJSUzI1NiJ9...." }
Operation ID for correlating logs across multiple services
Identifies the cloud site to which you are logging.
type
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):
- BadUserInput
- BadRequest
{
"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):
- NotAuthenticated
- RemoteAuthenticationFailure
{
"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):
- SiteNotFound
{
"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.