Interface ResourceRecordApi


  • public interface ResourceRecordApi
    See Also:
    ,
    • Method Detail

      • 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 {@see ResourceRecordMetadata#getGuid()}
        updated - the record to update.
        Throws:
        ResourceNotFoundException - if the guid 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 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 hostName and 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 {@see ResourceRecordMetadata#getGuid()}