Package org.jclouds.cloudstack.features
Interface SessionApi
public interface SessionApi
Provides synchronous access to Cloudstack Sessions
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionloginUserInDomainWithHashOfPassword
(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 Details
-
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
Logs out the user by invalidating the session key- Parameters:
sessionKey
- user session key
-