Interface ResourceRecordApi


public interface ResourceRecordApi
See Also:
  • Method Details

    • create

      @Named("createResourceRecord") @POST String create(ResourceRecord toCreate) throws UltraDNSWSExceptions.ResourceAlreadyExistsException
      creates a resource record in the zone.
      Parameters:
      toCreate - the new record to create.
      Returns:
      the guid of the new record
      Throws:
      UltraDNSWSExceptions.ResourceAlreadyExistsException - if a record already exists with the same attrs
    • update

      @Named("updateResourceRecord") @POST void update(String guid, ResourceRecord toCreate) throws ResourceNotFoundException
      updates an existing resource record in the zone.
      Parameters:
      guid - the global unique identifier for the resource record
      updated - the record to update.
      Throws:
      ResourceNotFoundException - if the guid doesn't exist
    • list

      @Named("getResourceRecordsOfZone") @POST com.google.common.collect.FluentIterable<ResourceRecordDetail> list() throws ResourceNotFoundException
      Returns all the specified record types in the zone.
      Throws:
      ResourceNotFoundException - if the zone doesn't exist
    • listByName

      @Named("getResourceRecordsOfDNameByType") @POST com.google.common.collect.FluentIterable<ResourceRecordDetail> listByName(String hostName) throws ResourceNotFoundException
      Returns all the specified record types in the zone with the fully qualified
      invalid reference
      hostName
      Parameters:
      hostName - fully qualified hostname including the trailing dot.
      Throws:
      ResourceNotFoundException - if the zone doesn't exist
    • listByNameAndType

      @Named("getResourceRecordsOfDNameByType") @POST com.google.common.collect.FluentIterable<ResourceRecordDetail> listByNameAndType(String hostName, int rrType) throws ResourceNotFoundException
      Returns all the specified record types in the zone with the fully qualified
      invalid reference
      hostName
      and
      invalid reference
      rrType
      Parameters:
      hostName - fully qualified hostname including the trailing dot.
      rrType - type value (ex. for A, this is 1
      Throws:
      ResourceNotFoundException - if the zone doesn't exist
    • delete

      @Named("deleteResourceRecord") @POST void delete(String guid)
      deletes a specific resource record
      Parameters:
      guid - the global unique identifier for the resource record