Package org.jclouds.ultradns.ws.features
Interface TrafficControllerPoolApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddRecordToPoolWithTTL(String rdata, String lbPoolID, int ttl)adds a new record to the pool with default weight.StringaddRecordToPoolWithTTLAndWeight(String rdata, String lbPoolID, int ttl, int weight)adds a new record to the pool with a specified weight.StringcreateForDNameAndType(String name, String dname, int rrType)creates a traffic controller pool.voiddelete(String id)removes a pool and all its records and probesvoiddeleteRecord(String poolRecordID)deletes a specific pooled resource recordStringgetNameByDName(String dname)Retrieves the name of the specified pool by dname.PoolRecordSpecgetRecordSpec(String poolRecordID)com.google.common.collect.FluentIterable<TrafficControllerPool>list()Returns all traffic controller pools in the zone.com.google.common.collect.FluentIterable<TrafficControllerPoolRecordDetail>listRecords(String poolId)Returns all records in the traffic controller pool.voidupdateRecord(String poolRecordID, UpdatePoolRecord update)This request updates an existing pool record.
-
-
-
Method Detail
-
createForDNameAndType
@Named("addTCLBPool") @POST String createForDNameAndType(String name, String dname, int rrType) throws UltraDNSWSExceptions.ResourceAlreadyExistsExceptioncreates a traffic controller pool.- Parameters:
name-nameof the TC pooldname-dnameof the TC pool {ex. www.jclouds.org.}rrType- therecord typesupported.- Returns:
- the
guidof the new record - Throws:
UltraDNSWSExceptions.ResourceAlreadyExistsException- if a pool already exists with the same attrs
-
list
@Named("getLoadBalancingPoolsByZone") @POST com.google.common.collect.FluentIterable<TrafficControllerPool> list() throws ResourceNotFoundExceptionReturns all traffic controller pools in the zone.- Throws:
ResourceNotFoundException- if the zone doesn't exist
-
listRecords
@Named("getPoolRecords") @POST com.google.common.collect.FluentIterable<TrafficControllerPoolRecordDetail> listRecords(String poolId) throws ResourceNotFoundExceptionReturns all records in the traffic controller pool.- Throws:
ResourceNotFoundException- if the pool doesn't exist
-
getNameByDName
@Nullable @Named("getPoolForPoolHostName>") @POST String getNameByDName(String dname)
Retrieves the name of the specified pool by dname.- Parameters:
dname- {@see TrafficControllerPool#getDName()} ex.jclouds.org.- Returns:
- null if not found
-
delete
@Named("deleteLBPool") @POST void delete(String id)removes a pool and all its records and probes- Parameters:
id- theid
-
addRecordToPoolWithTTL
@Named("addPoolRecord") @POST String addRecordToPoolWithTTL(String rdata, String lbPoolID, int ttl) throws UltraDNSWSExceptions.ResourceAlreadyExistsExceptionadds a new record to the pool with default weight.- Parameters:
rdata- the ipv4 address or hostnamelbPoolID- the pool to add the record to.ttl- thettlof the record- Returns:
- the
idof the new record - Throws:
UltraDNSWSExceptions.ResourceAlreadyExistsException- if a record already exists with the same attrs
-
addRecordToPoolWithTTLAndWeight
@Named("addPoolRecord") @POST String addRecordToPoolWithTTLAndWeight(String rdata, String lbPoolID, int ttl, int weight) throws UltraDNSWSExceptions.ResourceAlreadyExistsExceptionadds a new record to the pool with a specified weight.- Parameters:
rdata- the ipv4 address or hostnamelbPoolID- the pool to add the record to.ttl- thettlof the recordweight- theweightof the record- Returns:
- the
idof the new record - Throws:
UltraDNSWSExceptions.ResourceAlreadyExistsException- if a record already exists with the same attrs
-
getRecordSpec
@Named("getPoolRecordSpec>") @POST @Nullable PoolRecordSpec getRecordSpec(String poolRecordID)- Parameters:
poolRecordID-TrafficControllerPoolRecordDetail.getId()- Returns:
- null if not found
-
updateRecord
@Named("updatePoolRecord>") @POST void updateRecord(String poolRecordID, UpdatePoolRecord update) throws ResourceNotFoundExceptionThis request updates an existing pool record.- Parameters:
poolRecordID-TrafficControllerPoolRecordDetail.getId()update- what to update, usually primed viaUpdatePoolRecord.pointingTo(PoolRecordSpec, String)orUpdatePoolRecord.Builder.from(PoolRecordSpec)- Throws:
ResourceNotFoundException- if the record doesn't exist
-
deleteRecord
@Named("deletePoolRecord") @POST void deleteRecord(String poolRecordID)deletes a specific pooled resource record- Parameters:
poolRecordID- {@see TrafficControllerPoolRecord#getId()}
-
-