Package org.jclouds.ultradns.ws.features
Interface ResourceRecordApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringcreate(ResourceRecord toCreate)creates a resource record in the zone.voiddelete(String guid)deletes a specific resource recordcom.google.common.collect.FluentIterable<ResourceRecordDetail>list()Returns all the specified record types in the zone.com.google.common.collect.FluentIterable<ResourceRecordDetail>listByName(String hostName)Returns all the specified record types in the zone with the fully qualifiedhostNamecom.google.common.collect.FluentIterable<ResourceRecordDetail>listByNameAndType(String hostName, int rrType)Returns all the specified record types in the zone with the fully qualifiedhostNameandrrTypevoidupdate(String guid, ResourceRecord toCreate)updates an existing resource record in the zone.
-
-
-
Method Detail
-
create
@Named("createResourceRecord") @POST String create(ResourceRecord toCreate) throws UltraDNSWSExceptions.ResourceAlreadyExistsExceptioncreates a resource record in the zone.- Parameters:
toCreate- the new record to create.- Returns:
- the
guidof 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 ResourceNotFoundExceptionupdates 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
-
list
@Named("getResourceRecordsOfZone") @POST com.google.common.collect.FluentIterable<ResourceRecordDetail> list() throws ResourceNotFoundExceptionReturns 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 ResourceNotFoundExceptionReturns all the specified record types in the zone with the fully qualifiedhostName- 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 ResourceNotFoundExceptionReturns all the specified record types in the zone with the fully qualifiedhostNameandrrType- Parameters:
hostName- fully qualified hostname including the trailing dot.rrType- type value (ex. forA, this is1- 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()}
-
-