public interface DomainApi
Modifier and Type | Method and Description |
---|---|
Job<Set<Domain>> |
create(Iterable<CreateDomain> createDomains)
Provisions one or more new DNS domains based on the configuration defined in CreateDomain.
|
Job<Void> |
delete(Iterable<Integer> ids,
boolean deleteSubdomains)
This call removes one or more specified domains from the account; when a domain is deleted, its immediate resource
records are also deleted from the account.
|
Job<List<String>> |
exportFormat(int id,
Domain.Format format)
This call provides the BIND (Berkeley Internet Name Domain) 9 formatted contents of the requested domain.
|
Domain |
get(int id)
Get all information for a Domain, including records and subdomains.
|
Job<Domain> |
importFormat(List<String> contents,
Domain.Format format)
This call provisions a new DNS domain under the account specified by the BIND 9 formatted file configuration
contents.
|
PagedIterable<Domain> |
list()
The resulting list is flat, and does not break the domains down hierarchically by subdomain.
|
PaginatedCollection<Domain> |
list(PaginationOptions options)
The resulting list is flat, and does not break the domains down hierarchically by subdomain.
|
DomainChange |
listChanges(int id,
Date since)
Shows all changes to the specified domain since the specified date/time.
|
PagedIterable<Subdomain> |
listSubdomains(int domainId)
List the subdomains of a domain.
|
PaginatedCollection<Subdomain> |
listSubdomains(int domainId,
PaginationOptions options)
List the subdomains of a domain and manually control pagination.
|
PagedIterable<Domain> |
listWithFilterByNamesMatching(String nameFilter)
Filtering the search to limit the results returned can be performed by using the nameFilter parameter.
|
Job<Void> |
update(int id,
UpdateDomain updateDomain)
This call modifies the domain attributes only.
|
Job<Void> |
updateEmail(Iterable<Integer> ids,
String email)
This call modifies the domain's email only.
|
Job<Void> |
updateTTL(Iterable<Integer> ids,
int ttl)
This call modifies the domain's TTL only.
|
@Named(value="domain:create") @POST @Consumes(value="application/json") @Path(value="/domains") Job<Set<Domain>> create(Iterable<CreateDomain> createDomains)
JobPredicates.awaitComplete(CloudDNSApi, Job)
.@Named(value="domain:list") @GET @Consumes(value="application/json") @Path(value="/domains") PagedIterable<Domain> list()
@Named(value="domain:list") @GET @Consumes(value="application/json") @Path(value="/domains") PagedIterable<Domain> listWithFilterByNamesMatching(@QueryParam(value="name") String nameFilter)
@Named(value="domain:list") @GET @Consumes(value="application/json") @Path(value="/domains") PaginatedCollection<Domain> list(PaginationOptions options)
@Named(value="domain:list") @GET @Consumes(value="application/json") @Path(value="/domains/{domainId}/subdomains") @Nullable PagedIterable<Subdomain> listSubdomains(@PathParam(value="domainId") int domainId)
@Named(value="domain:list") @GET @Consumes(value="application/json") @Path(value="/domains/{domainId}/subdomains") PaginatedCollection<Subdomain> listSubdomains(@PathParam(value="domainId") int domainId, PaginationOptions options)
@Named(value="domain:list") @GET @Consumes(value="application/json") @Path(value="/domains/{id}/changes") @Nullable DomainChange listChanges(@PathParam(value="id") int id, @QueryParam(value="changes") Date since)
@Named(value="domain:get") @GET @Consumes(value="application/json") @Path(value="/domains/{id}") @Nullable Domain get(@PathParam(value="id") int id)
@Named(value="domain:update") @PUT @Produces(value="application/json") @Consumes(value="application/json") @Path(value="/domains/{id}") Job<Void> update(@PathParam(value="id") int id, UpdateDomain updateDomain)
JobPredicates.awaitComplete(CloudDNSApi, Job)
.RecordApi
@Named(value="domain:update") @PUT @Produces(value="application/json") @Consumes(value="application/json") @Path(value="/domains") Job<Void> updateTTL(Iterable<Integer> ids, int ttl)
JobPredicates.awaitComplete(CloudDNSApi, Job)
.@Named(value="domain:update") @PUT @Produces(value="application/json") @Consumes(value="application/json") @Path(value="/domains") Job<Void> updateEmail(Iterable<Integer> ids, String email)
JobPredicates.awaitComplete(CloudDNSApi, Job)
.@Named(value="domain:delete") @DELETE @Path(value="/domains") @Consumes(value="*/*") Job<Void> delete(@QueryParam(value="id") Iterable<Integer> ids, @QueryParam(value="deleteSubdomains") boolean deleteSubdomains)
JobPredicates.awaitComplete(CloudDNSApi, Job)
.@Named(value="domain:export") @GET @Consumes(value="application/json") @Path(value="/domains/{id}/export") Job<List<String>> exportFormat(@PathParam(value="id") int id, Domain.Format format)
JobPredicates.awaitComplete(CloudDNSApi, Job)
.@Named(value="domain:import") @POST @Produces(value="application/json") @Consumes(value="application/json") @Path(value="/domains/import") Job<Domain> importFormat(List<String> contents, Domain.Format format)
JobPredicates.awaitComplete(CloudDNSApi, Job)
.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.