Package org.jclouds.ultradns.ws.features
Interface ZoneApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateInAccount(String name, String accountId)creates a primary zone and its supporting records (SOA, NS and A).voiddelete(String name)deletes a zone and all its resource recordsZonePropertiesget(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("createPrimaryZone") @POST void createInAccount(String name, String accountId) throws UltraDNSWSExceptions.ResourceAlreadyExistsExceptioncreates 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("getGeneralPropertiesForZone") @POST @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("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 ResourceNotFoundExceptionLists all zones in the specified account of type- Throws:
ResourceNotFoundException- if the account doesn't exist
-
delete
@Named("deleteZone") @POST 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.
-
-