Package org.jclouds.ultradns.ws.features
Interface RoundRobinPoolApi
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddAAAARecordWithAddressAndTTL(String lbPoolID, String ipv6Address, int ttl)adds a newAAAArecord to the poolStringaddARecordWithAddressAndTTL(String lbPoolID, String ipv4Address, int ttl)adds a newArecord to the poolStringcreateForDNameAndType(String name, String dname, int rrType)creates a round robin pool.voiddelete(String id)removes a pool and all its records and probesvoiddeleteRecord(String guid)deletes a specific pooled resource recordcom.google.common.collect.FluentIterable<RoundRobinPool>list()Returns all round robin pools in the zone.com.google.common.collect.FluentIterable<ResourceRecordDetail>listRecords(String poolId)Returns all records in the round robin pool.voidupdateRecordWithAddressAndTTL(String lbPoolID, String guid, String ipv4Address, int ttl)updates an existing A or AAAA record in the pool. 
 - 
 
- 
- 
Method Detail
- 
list
@Named("getLoadBalancingPoolsByZone") @POST com.google.common.collect.FluentIterable<RoundRobinPool> list() throws ResourceNotFoundExceptionReturns all round robin pools in the zone.- Throws:
 ResourceNotFoundException- if the zone doesn't exist
 
- 
listRecords
@Named("getRRPoolRecords") @POST com.google.common.collect.FluentIterable<ResourceRecordDetail> listRecords(String poolId) throws ResourceNotFoundExceptionReturns all records in the round robin pool.- Throws:
 ResourceNotFoundException- if the pool doesn't exist
 
- 
createForDNameAndType
@Named("addRRLBPool") @POST String createForDNameAndType(String name, String dname, int rrType) throws UltraDNSWSExceptions.ResourceAlreadyExistsExceptioncreates a round robin pool.- Parameters:
 name-nameof the RR pooldname-dnameof the RR pool {ex. www.jclouds.org.}rrType- therecord typesupported.- Returns:
 - the 
guidof the new pool - Throws:
 UltraDNSWSExceptions.ResourceAlreadyExistsException- if a pool already exists with the same attrs
 
- 
addARecordWithAddressAndTTL
@Named("addRecordToRRPool") @POST String addARecordWithAddressAndTTL(String lbPoolID, String ipv4Address, int ttl) throws UltraDNSWSExceptions.ResourceAlreadyExistsExceptionadds a newArecord to the pool- Parameters:
 lbPoolID- the pool to add the record to.ipv4Address- the ipv4 addressttl- thettlof the record- Returns:
 - the 
guidof the new record - Throws:
 UltraDNSWSExceptions.ResourceAlreadyExistsException- if a record already exists with the same attrs
 
- 
updateRecordWithAddressAndTTL
@Named("updateRecordOfRRPool") @POST void updateRecordWithAddressAndTTL(String lbPoolID, String guid, String ipv4Address, int ttl) throws ResourceNotFoundExceptionupdates an existing A or AAAA record in the pool.- Parameters:
 lbPoolID- the pool to add the record to.guid- the global unique identifier for the resource record {@see ResourceRecordMetadata#getGuid()}address- the ipv4 or ipv6 addressttl- thettlof the record- Throws:
 ResourceNotFoundException- if the guid doesn't exist
 
- 
deleteRecord
@Named("deleteRecordOfRRPool") @POST void deleteRecord(String guid)deletes a specific pooled resource record- Parameters:
 guid- the global unique identifier for the resource record {@see ResourceRecordMetadata#getGuid()}
 
- 
addAAAARecordWithAddressAndTTL
@Named("addRecordToRRPool") @POST String addAAAARecordWithAddressAndTTL(String lbPoolID, String ipv6Address, int ttl) throws UltraDNSWSExceptions.ResourceAlreadyExistsExceptionadds a newAAAArecord to the pool- Parameters:
 lbPoolID- the pool to add the record to.ipv6Address- the ipv6 addressttl- thettlof the record- Returns:
 - the 
guidof the new record - Throws:
 UltraDNSWSExceptions.ResourceAlreadyExistsException- if a record already exists with the same attrs
 
 - 
 
 -