Login
This request creates a new Cloud service session. The supported authentication methods are the following:
- with SSO credentials
{ "type": "ssoCredentials", "username": "ssoUser", "password": "ssoPass", "principal" : null }
- with SSO SAML token
{ "type": "ssoToken", "samlToken": "<saml2:Assertion xmlns:saml2=...>...</saml2:Assertion>", "timestamp": 1465194049081, "nonce": "jF845646gJzx734", "signature": "c2FtcGxlU2lnbmF0dXJlCg==", "principal" : null }
- with VMware Cloud Director credentials
{ "type": "vcdCredentials", "vcdUser": "admin1@org2", "vcdPassword": "password" }
- with VMware Cloud Director auth cookie:
{ "type": "vcdCookie", "vcdCookie": "f12977876fef48a6b032ffdb2cdf22d7" }
- with VMware Cloud Director access token (jwt):
{ "type": "vcdAccessToken", "vcdAccessToken": "eyJhbGciOiJSUzI1NiJ9....", "context": "acme-dr" }
- OS root credentials:
{ "type": "localUser", "localUser": "root", "localPassword": "password" }
Operation ID for correlating logs across multiple services
{
"type": "vcdCredentials",
"vcdUser": "admin1@org2",
"vcdPassword": "password"
}
OK
{
"roles": [
"EVERYONE"
],
"user": "admin1@Org1",
"authenticatedSites": [
{
"org": "Org1",
"site": "site1"
}
]
}
VMware Cloud Director sites the current session has authenticated with. The site specified in the request should be present here
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.