public interface ZoneApi
Modifier and Type | Method and Description |
---|---|
Job |
delete(String fqdn)
Deletes the zone.
|
Job |
deleteChanges(String fqdn)
Deletes changes to the specified zone that have been created during the
current session but not yet published to the zone.
|
Job |
freeze(String fqdn)
freezes the specified zone.
|
Zone |
get(String fqdn)
Retrieves information about the specified zone.
|
com.google.common.collect.FluentIterable<String> |
list()
Lists all zone ids.
|
Zone |
publish(String fqdn)
Publishes the current zone
|
Job |
scheduleCreate(CreatePrimaryZone createZone)
Schedules addition of a new primary zone into the current session.
|
Job |
scheduleCreateWithContact(String fqdn,
String contact)
Schedules addition of a new primary zone with one hour default TTL and
SerialStyle#INCREMENT into the current session. |
Job |
thaw(String fqdn)
thaws the specified zone.
|
@Named(value="ListZones") @GET @Path(value="/Zone") com.google.common.collect.FluentIterable<String> list() throws DynECTExceptions.JobStillRunningException
DynECTExceptions.JobStillRunningException
- if a different job in the session is still running@Named(value="CreatePrimaryZone") @POST @Path(value="/Zone/{fqdn}") @Consumes(value="application/json") Job scheduleCreate(@PathParam(value="fqdn") CreatePrimaryZone createZone) throws DynECTExceptions.JobStillRunningException, DynECTExceptions.TargetExistsException
publish(String)
will publish the zone, creating the zone.zone
- required parameters to create the zone.DynECTExceptions.JobStillRunningException
- if a different job in the session is still runningDynECTExceptions.TargetExistsException
- if the same fqdn exists@Named(value="CreatePrimaryZone") @POST @Produces(value="application/json") @Path(value="/Zone/{fqdn}") @Consumes(value="application/json") Job scheduleCreateWithContact(@PathParam(value="fqdn") String fqdn, String contact) throws DynECTExceptions.JobStillRunningException, DynECTExceptions.TargetExistsException
SerialStyle#INCREMENT
into the current session. Calling
publish(String)
will publish the zone, creating the zone.fqdn
- fqdn of the zone to create contact
- email address of the contactDynECTExceptions.JobStillRunningException
- if a different job in the session is still runningDynECTExceptions.TargetExistsException
- if the same fqdn exists@Named(value="GetZone") @GET @Path(value="/Zone/{fqdn}") @Nullable Zone get(@PathParam(value="fqdn") String fqdn) throws DynECTExceptions.JobStillRunningException
fqdn
- fqdn of the zone to get information about. ex
jclouds.org
DynECTExceptions.JobStillRunningException
- if a different job in the session is still running@Named(value="DeleteZone") @DELETE @Path(value="/Zone/{fqdn}") @Consumes(value="application/json") @Nullable Job delete(@PathParam(value="fqdn") String fqdn) throws DynECTExceptions.JobStillRunningException
fqdn
- zone to deleteDynECTExceptions.JobStillRunningException
- if a different job in the session is still running@Named(value="DeleteZoneChanges") @DELETE @Path(value="/ZoneChanges/{fqdn}") @Consumes(value="application/json") Job deleteChanges(@PathParam(value="fqdn") String fqdn) throws DynECTExceptions.JobStillRunningException
fqdn
- fqdn of the zone to delete changes from ex jclouds.org
DynECTExceptions.JobStillRunningException
- if a different job in the session is still running@Named(value="PublishZone") @PUT @Path(value="/Zone/{fqdn}") @Produces(value="application/json") Zone publish(@PathParam(value="fqdn") String fqdn) throws DynECTExceptions.JobStillRunningException, ResourceNotFoundException
fqdn
- fqdn of the zone to publish. ex jclouds.org
DynECTExceptions.JobStillRunningException
- if a different job in the session is still runningResourceNotFoundException
- if the zone doesn't exist@Named(value="FreezeZone") @PUT @Path(value="/Zone/{fqdn}") @Produces(value="application/json") @Consumes(value="application/json") Job freeze(@PathParam(value="fqdn") String fqdn) throws DynECTExceptions.JobStillRunningException
fqdn
- fqdn of the zone to freeze ex jclouds.org
DynECTExceptions.JobStillRunningException
- if a different job in the session is still running@Named(value="ThawZone") @PUT @Path(value="/Zone/{fqdn}") @Produces(value="application/json") @Consumes(value="application/json") Job thaw(@PathParam(value="fqdn") String fqdn) throws DynECTExceptions.JobStillRunningException
fqdn
- fqdn of the zone to thaw ex jclouds.org
DynECTExceptions.JobStillRunningException
- if a different job in the session is still runningCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.