Interface EmailAccountApi


  • public interface EmailAccountApi
    Provides synchronous access to E-Mail requests.

    See Also:
    • Method Detail

      • getOverview

        @Named("email:overview")
        @POST
        @Path("/email/overview/format/json")
        @Consumes("application/json")
        EmailOverview getOverview()
        Get a summary of e-mail accounts associated with this Glesys account
        Returns:
        the relevant summary data
      • listDomain

        @Named("email:list:accounts")
        @POST
        @Path("/email/list/format/json")
        @Consumes("application/json")
        com.google.common.collect.FluentIterable<EmailAccount> listDomain​(@FormParam("domainname")
                                                                          String domain)
        Get the set of detailed information about e-mail accounts
        Returns:
        the relevant set of details
      • listAliasesInDomain

        @Named("email:list:aliases")
        @POST
        @Path("/email/list/format/json")
        @Consumes("application/json")
        com.google.common.collect.FluentIterable<EmailAlias> listAliasesInDomain​(@FormParam("domainname")
                                                                                 String domain)
        Get the set of details about e-mail aliases
        Returns:
        the relevant set of details
      • createAlias

        @Named("email:createalias")
        @POST
        @Consumes("application/json")
        @Path("/email/createalias/format/json")
        EmailAlias createAlias​(@FormParam("emailalias")
                               String aliasAddress,
                               @FormParam("goto")
                               String toEmailAddress)
        Create an e-mail alias for an e-mail account
        Parameters:
        aliasAddress - the address to use for the alias (the domain should already exist)
        toEmailAddress - the existing e-mail account address the alias should forward to
        See Also:
        DomainApi.create(java.lang.String, org.jclouds.glesys.options.AddDomainOptions...)
      • update

        @Named("email:editaccount")
        @POST
        @Consumes("application/json")
        @Path("/email/editaccount/format/json")
        EmailAccount update​(@FormParam("emailaccount")
                            String accountAddress,
                            UpdateAccountOptions... options)
        Adjust an e-mail account's settings
        Parameters:
        accountAddress - the existing e-mail account address
        options - optional parameters
      • updateAlias

        @Named("email:editalias")
        @POST
        @Consumes("application/json")
        @Path("/email/editalias/format/json")
        EmailAlias updateAlias​(@FormParam("emailalias")
                               String aliasAddress,
                               @FormParam("goto")
                               String toEmailAddress)
        Adjust (re-target) an e-mail alias
        Parameters:
        aliasAddress - the existing alias e-mail address
        toEmailAddress - the existing e-mail account address the alias should forward to
      • delete

        @Named("email:delete")
        @POST
        @Path("/email/delete/format/json")
        boolean delete​(@FormParam("email")
                       String accountAddress)
        Delete an e-mail account or alias
        Parameters:
        accountAddress - the existing alias e-mail account or alias address