Package org.jclouds.cloudstack.features
Interface SessionApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LoginResponse
loginUserInDomainWithHashOfPassword(String userName, String domain, String hashedPassword)
Logs a user into Cloudstack.void
logoutUser(String sessionKey)
Logs out the user by invalidating the session key
-
-
-
Method Detail
-
loginUserInDomainWithHashOfPassword
@Named("login") @GET @Consumes("application/json") LoginResponse loginUserInDomainWithHashOfPassword(@QueryParam("username") String userName, @QueryParam("domain") String domain, @QueryParam("password") String hashedPassword)
Logs a user into Cloudstack. A successful login attempt will generate a JSESSIONID cookie value that can be passed in subsequent Query command calls until the "logout" command has been issued or the session has expired.- Parameters:
userName
- user account namedomain
- domain name, if empty defaults to ROOThashedPassword
- hashed password (by default MD5)- Returns:
- login response with session key or null
-
logoutUser
@Named("logout") @GET void logoutUser(@QueryParam("sessionkey") String sessionKey)
Logs out the user by invalidating the session key- Parameters:
sessionKey
- user session key
-
-