public interface ResourceRecordApi
ResourceRecordAsyncApi
Modifier and Type | Method and Description |
---|---|
String |
create(ResourceRecord toCreate)
creates a resource record in the zone.
|
void |
delete(String guid)
deletes a specific resource record/
|
com.google.common.collect.FluentIterable<ResourceRecordMetadata> |
list()
Returns all the specified record types in the zone.
|
com.google.common.collect.FluentIterable<ResourceRecordMetadata> |
listByName(String hostName)
Returns all the specified record types in the zone with the fully
qualified
hostName |
com.google.common.collect.FluentIterable<ResourceRecordMetadata> |
listByNameAndType(String hostName,
int rrType) |
com.google.common.collect.FluentIterable<ResourceRecordMetadata> |
listByNameAndType(String hostName,
String type) |
com.google.common.collect.FluentIterable<ResourceRecordMetadata> |
listByNameAndType(String hostName,
com.google.common.primitives.UnsignedInteger rrType)
Returns all the specified record types in the zone with the fully
qualified
hostName and rrType |
void |
update(String guid,
ResourceRecord updated)
updates an existing resource record in the zone.
|
String create(ResourceRecord toCreate) throws UltraDNSWSExceptions.ResourceAlreadyExistsException
toCreate
- the new record to create.guid
of the new recordUltraDNSWSExceptions.ResourceAlreadyExistsException
- if a record already exists with the same attrsvoid update(String guid, ResourceRecord updated) throws ResourceNotFoundException
guid
- the global unique identifier for the resource record ResourceRecordMetadata.getGuid()
updated
- the record to update.ResourceNotFoundException
- if the guid doesn't existcom.google.common.collect.FluentIterable<ResourceRecordMetadata> list() throws ResourceNotFoundException
ResourceNotFoundException
- if the zone doesn't existcom.google.common.collect.FluentIterable<ResourceRecordMetadata> listByName(String hostName) throws ResourceNotFoundException
hostName
hostName
- fully qualified hostname including the trailing dot.ResourceNotFoundException
- if the zone doesn't existcom.google.common.collect.FluentIterable<ResourceRecordMetadata> listByNameAndType(String hostName, com.google.common.primitives.UnsignedInteger rrType) throws ResourceNotFoundException
hostName
and rrType
hostName
- fully qualified hostname including the trailing dot.rrType
- type value (ex. for A
, this is 1
ResourceNotFoundException
- if the zone doesn't existcom.google.common.collect.FluentIterable<ResourceRecordMetadata> listByNameAndType(String hostName, int rrType) throws ResourceNotFoundException
ResourceNotFoundException
listByNameAndType(String, UnsignedInteger)
com.google.common.collect.FluentIterable<ResourceRecordMetadata> listByNameAndType(String hostName, String type) throws ResourceNotFoundException
type
- the literal type defined in ResourceTypeToValue
. ex
AAAA
ResourceNotFoundException
listByNameAndType(String, UnsignedInteger)
void delete(String guid)
guid
- the global unique identifier for the resource record ResourceRecordMetadata.getGuid()
Copyright © 2009-2013 jclouds. All Rights Reserved.