org.jclouds.ultradns.ws.features
Interface ResourceRecordApi


public interface ResourceRecordApi

See Also:
,

Method Summary
 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<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 qualified hostName
 com.google.common.collect.FluentIterable<ResourceRecordDetail> listByNameAndType(String hostName, int rrType)
          Returns all the specified record types in the zone with the fully qualified hostName and rrType
 void update(String guid, ResourceRecord toCreate)
          updates an existing resource record in the zone.
 

Method Detail

create

@Named(value="createResourceRecord")
String create(ResourceRecord toCreate)
              throws UltraDNSWSExceptions.ResourceAlreadyExistsException
creates a resource record in the zone.

Parameters:
toCreate - the new record to create.
Returns:
the guid of the new record
Throws:
UltraDNSWSExceptions.ResourceAlreadyExistsException - if a record already exists with the same attrs

update

@Named(value="updateResourceRecord")
void update(String guid,
                  ResourceRecord toCreate)
            throws org.jclouds.rest.ResourceNotFoundException
updates an existing resource record in the zone.

Parameters:
guid - the global unique identifier for the resource record ResourceRecordMetadata#getGuid()
updated - the record to update.
Throws:
org.jclouds.rest.ResourceNotFoundException - if the guid doesn't exist

list

@Named(value="getResourceRecordsOfZone")
com.google.common.collect.FluentIterable<ResourceRecordDetail> list()
                                                                    throws org.jclouds.rest.ResourceNotFoundException
Returns all the specified record types in the zone.

Throws:
org.jclouds.rest.ResourceNotFoundException - if the zone doesn't exist

listByName

@Named(value="getResourceRecordsOfDNameByType")
com.google.common.collect.FluentIterable<ResourceRecordDetail> listByName(String hostName)
                                                                          throws org.jclouds.rest.ResourceNotFoundException
Returns all the specified record types in the zone with the fully qualified hostName

Parameters:
hostName - fully qualified hostname including the trailing dot.
Throws:
org.jclouds.rest.ResourceNotFoundException - if the zone doesn't exist

listByNameAndType

@Named(value="getResourceRecordsOfDNameByType")
com.google.common.collect.FluentIterable<ResourceRecordDetail> listByNameAndType(String hostName,
                                                                                       int rrType)
                                                                                 throws org.jclouds.rest.ResourceNotFoundException
Returns all the specified record types in the zone with the fully qualified hostName and rrType

Parameters:
hostName - fully qualified hostname including the trailing dot.
rrType - type value (ex. for A, this is 1
Throws:
org.jclouds.rest.ResourceNotFoundException - if the zone doesn't exist

delete

@Named(value="deleteResourceRecord")
void delete(String guid)
deletes a specific resource record

Parameters:
guid - the global unique identifier for the resource record ResourceRecordMetadata#getGuid()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.