Class ApiKeyPairs


  • public class ApiKeyPairs
    extends Object
    • Constructor Detail

      • ApiKeyPairs

        public ApiKeyPairs()
    • Method Detail

      • loginToEndpointAsUsernameInDomainWithPasswordAndReturnApiKeyPair

        public static ApiKeyPair loginToEndpointAsUsernameInDomainWithPasswordAndReturnApiKeyPair​(URI endpoint,
                                                                                                  String username,
                                                                                                  String password,
                                                                                                  String domain)
        Retrieve the API key pair for a given CloudStack user
        Parameters:
        endpoint - CloudStack API endpoint (e.g. http://72.52.126.25/client/api/)
        username - User account name
        password - User password
        domain - Domain name. If empty defaults to ROOT
        Returns: