Interface ZoneApi


public interface ZoneApi
See Also:
  • Method Details

    • createInAccount

      @Named("createPrimaryZone") @POST void createInAccount(String name, String accountId) throws UltraDNSWSExceptions.ResourceAlreadyExistsException
      creates a primary zone and its supporting records (SOA, NS and A). The user who issues this request becomes the owner of this zone.
      Parameters:
      name - the fully qualified name of the new zone.
      accountId - the account to create the zone in
      Throws:
      UltraDNSWSExceptions.ResourceAlreadyExistsException
    • get

      @Named("getGeneralPropertiesForZone") @POST @Nullable ZoneProperties get(String name)
      Parameters:
      name - the fully-qualified name, including the trailing dot, of the zone to get information about.
      Returns:
      null if not found
    • listByAccount

      @Named("getZonesOfAccount") @POST com.google.common.collect.FluentIterable<Zone> listByAccount(String accountId)
      Lists all zones in the specified account.
    • listByAccountAndType

      @Named("getZonesOfAccount") @POST com.google.common.collect.FluentIterable<Zone> listByAccountAndType(String accountId, Zone.Type type) throws ResourceNotFoundException
      Lists all zones in the specified account of type
      Throws:
      ResourceNotFoundException - if the account doesn't exist
    • delete

      @Named("deleteZone") @POST void delete(String name)
      deletes a zone and all its resource records
      Parameters:
      name - the fully-qualified name, including the trailing dot, of the zone you want to delete.