Modifier and Type | Method and Description |
---|---|
String |
addFirstRecordInNonConfiguredGroup(String poolId,
DirectionalPoolRecord toCreate)
creates a resource record in the pool, creating and assigning it to the
special "non configured group".
|
String |
addRecordIntoExistingGroup(String poolId,
DirectionalPoolRecord toCreate,
String groupId)
creates a resource record in the pool.
|
String |
addRecordIntoNewGroup(String poolId,
DirectionalPoolRecord toCreate,
DirectionalGroup group)
creates a resource record in the pool.
|
String |
createForDNameAndType(String name,
String dname,
int rrType)
creates a directional pool for
A and CNAME (ipv4) records |
void |
delete(String id)
removes a pool and all its records
|
void |
deleteRecord(String id)
deletes a specific directional pool record
|
com.google.common.collect.FluentIterable<DirectionalPool> |
list()
Returns all directional pools in the zone.
|
com.google.common.collect.FluentIterable<DirectionalPoolRecordDetail> |
listRecordsByDNameAndType(String dname,
int rrType)
Returns all the directional pool records in the zone with the fully
qualified
hostName and rrType |
void |
updateRecord(String recordId,
DirectionalPoolRecord update)
updates such as ttl or rdata for an existing directional record.
|
void |
updateRecordAndGroup(String recordId,
DirectionalPoolRecord update,
DirectionalGroup group)
updates the geo groups of an existing directional record.
|
@Named(value="getDirectionalPoolsOfZone") com.google.common.collect.FluentIterable<DirectionalPool> list() throws ResourceNotFoundException
ResourceNotFoundException
- if the zone doesn't exist@Named(value="getDirectionalDNSRecordsForHost") com.google.common.collect.FluentIterable<DirectionalPoolRecordDetail> listRecordsByDNameAndType(String dname, int rrType) throws ResourceNotFoundException
hostName
and rrType
dname
- fully qualified hostname including the trailing dot.rrType
- type
value of the existing records.ResourceNotFoundException
- if the zone doesn't existRecordType#getCode()
@Named(value="addDirectionalPool") String createForDNameAndType(String name, String dname, int rrType) throws UltraDNSWSExceptions.ResourceAlreadyExistsException
A
and CNAME
(ipv4) recordsname
- description
of the Geo pooldname
- dname
of the Geo pool {ex.
www.jclouds.org.}rrType
- type
value for the records added to this
pool..id
of the new poolUltraDNSWSExceptions.ResourceAlreadyExistsException
- if a pool already exists with the same attrs@Named(value="addDirectionalPoolRecord") String addRecordIntoNewGroup(String poolId, DirectionalPoolRecord toCreate, DirectionalGroup group) throws UltraDNSWSExceptions.ResourceAlreadyExistsException
poolId
- pool to create the record in.toCreate
- the new record to create.group
- geo groups associated. Use the
UltraDNSWSApi#getRegionsByIdAndName()
to obtain the
regionName and territoryNames. To specify all of a region’s
territories, use
DirectionalGroup.Builder#mapRegion(String)
id
of the new recordUltraDNSWSExceptions.ResourceAlreadyExistsException
- if a record already exists with the same attrs@Named(value="addDirectionalPoolRecord") String addRecordIntoExistingGroup(String poolId, DirectionalPoolRecord toCreate, String groupId) throws UltraDNSWSExceptions.ResourceAlreadyExistsException
poolId
- pool to create the record in.toCreate
- the new record to create.groupId
- existing group from another record of the same dname and type.
For example
DirectionalPoolRecordDetail.getGeolocationGroup()
or
DirectionalPoolRecordDetail.getGroup()
.id
of the new recordUltraDNSWSExceptions.ResourceAlreadyExistsException
- if a record already exists with the same attrs@Named(value="addDirectionalPoolRecord") String addFirstRecordInNonConfiguredGroup(String poolId, DirectionalPoolRecord toCreate) throws UltraDNSWSExceptions.ResourceAlreadyExistsException
poolId
- pool to create the record in.toCreate
- the new record to create.id
of the new recordUltraDNSWSExceptions.ResourceAlreadyExistsException
- if a record already exists with the same attrs@Named(value="updateDirectionalPoolRecord") void updateRecord(String recordId, DirectionalPoolRecord update) throws ResourceNotFoundException
recordId
- id of the record to updateupdate
- the updated record.ResourceNotFoundException
- if the record doesn't exist@Named(value="updateDirectionalPoolRecord") void updateRecordAndGroup(String recordId, DirectionalPoolRecord update, DirectionalGroup group) throws ResourceNotFoundException, UltraDNSWSExceptions.DirectionalGroupOverlapException
recordId
- id of the record to updateupdate
- the updated record.group
- geo groups associated.ResourceNotFoundException
- if the record doesn't existUltraDNSWSExceptions.DirectionalGroupOverlapException
- if there's an overlap with another record in the pool. (ex.
have the same territories)@Named(value="deleteResourceRecord") void deleteRecord(String id)
id
- the id
of the
record.Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.