Package org.jclouds.ultradns.ws.features
Interface ZoneApi
public interface ZoneApi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createInAccount
(String name, String accountId) creates a primary zone and its supporting records (SOA, NS and A).void
deletes a zone and all its resource recordscom.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 Details
-
createInAccount
@Named("createPrimaryZone") @POST 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
- Parameters:
name
- the fully-qualified name, including the trailing dot, of the zone to get information about.- Returns:
- null if not found
-
listByAccount
@Named("getZonesOfAccount") @POST com.google.common.collect.FluentIterable<Zone> listByAccount(String accountId) Lists all zones in the specified account. -
listByAccountAndType
@Named("getZonesOfAccount") @POST com.google.common.collect.FluentIterable<Zone> listByAccountAndType(String accountId, Zone.Type type) throws ResourceNotFoundException Lists all zones in the specified account of type- Throws:
ResourceNotFoundException
- if the account doesn't exist
-
delete
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.
-