org.jclouds.ultradns.ws.features
Interface ZoneApi


public interface ZoneApi

See Also:
,

Method Summary
 void createInAccount(String name, String accountId)
          creates a primary zone and its supporting records (SOA, NS and A).
 void delete(String name)
          deletes a zone and all its resource records
 ZoneProperties get(String name)
           
 com.google.common.collect.FluentIterable<Zone> listByAccount(String accountId)
          Lists all zones in the specified account.
 com.google.common.collect.FluentIterable<Zone> listByAccountAndType(String accountId, Zone.Type type)
          Lists all zones in the specified account of type
 

Method Detail

createInAccount

@Named(value="createPrimaryZone")
void createInAccount(String name,
                           String accountId)
                     throws UltraDNSWSExceptions.ResourceAlreadyExistsException
creates a primary zone and its supporting records (SOA, NS and A). The user who issues this request becomes the owner of this zone.

Parameters:
name - the fully qualified name of the new zone.
accountId - the account to create the zone in
Throws:
UltraDNSWSExceptions.ResourceAlreadyExistsException

get

@Named(value="getGeneralPropertiesForZone")
@Nullable
ZoneProperties get(String name)
Parameters:
name - the fully-qualified name, including the trailing dot, of the zone to get information about.
Returns:
null if not found

listByAccount

@Named(value="getZonesOfAccount")
com.google.common.collect.FluentIterable<Zone> listByAccount(String accountId)
Lists all zones in the specified account.


listByAccountAndType

@Named(value="getZonesOfAccount")
com.google.common.collect.FluentIterable<Zone> listByAccountAndType(String accountId,
                                                                          Zone.Type type)
                                                                    throws org.jclouds.rest.ResourceNotFoundException
Lists all zones in the specified account of type

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

delete

@Named(value="deleteZone")
void delete(String name)
deletes a zone and all its resource records

Parameters:
name - the fully-qualified name, including the trailing dot, of the zone you want to delete.


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