Interface ReverseDNSApi
-
public interface ReverseDNSApi
Cloud DNS supports the management of reverse DNS (PTR) records for Rackspace Cloud devices such as Cloud Load Balancers and Cloud Servers (both first generation and next generation). In order to manage the PTR records for Rackspace Cloud devices, the service as well as the device resource URI must be specified along with record details.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Job<Set<RecordDetail>>
create(URI deviceURI, Iterable<Record> records)
Create Reverse DNS (PTR) records for a device.Job<Void>
delete(URI deviceURI, String ipAddress)
Delete the Reverse DNS (PTR) record with the specified IP address for a device.Job<Void>
deleteAll(URI deviceURI)
Delete all Reverse DNS (PTR) records for a device.RecordDetail
get(URI deviceURI, String recordId)
List all of the Reverse DNS (PTR) records for a device.PagedIterable<RecordDetail>
list(URI deviceURI)
List all of the Reverse DNS (PTR) records for a device.Job<Void>
update(URI deviceURI, Map<String,Record> idsToRecords)
Update Reverse DNS (PTR) records for a device.
-
-
-
Method Detail
-
list
@Named("rdns:list") @GET @Consumes("application/json") @Path("/rdns/{serviceName}") PagedIterable<RecordDetail> list(@QueryParam("href") URI deviceURI)
List all of the Reverse DNS (PTR) records for a device.
-
get
@Named("rdns:list") @GET @Consumes("application/json") @Path("/rdns/{serviceName}/{recordId}") RecordDetail get(@QueryParam("href") URI deviceURI, @PathParam("recordId") String recordId)
List all of the Reverse DNS (PTR) records for a device.
-
create
@Named("rdns:create") @POST @Produces("application/json") @Consumes("application/json") @Path("/rdns") Job<Set<RecordDetail>> create(URI deviceURI, Iterable<Record> records)
Create Reverse DNS (PTR) records for a device. To wait for this call to complete useJobPredicates.awaitComplete(CloudDNSApi, Job)
.
-
update
@Named("rdns:update") @PUT @Produces("application/json") @Consumes("application/json") @Path("/rdns") Job<Void> update(URI deviceURI, Map<String,Record> idsToRecords)
Update Reverse DNS (PTR) records for a device. To wait for this call to complete useJobPredicates.awaitComplete(CloudDNSApi, Job)
.
-
delete
@Named("rdns:delete") @DELETE @Path("/rdns/{serviceName}") @Consumes("*/*") Job<Void> delete(@QueryParam("href") URI deviceURI, @QueryParam("ip") String ipAddress)
Delete the Reverse DNS (PTR) record with the specified IP address for a device. To wait for this call to complete useJobPredicates.awaitComplete(CloudDNSApi, Job)
.
-
deleteAll
@Named("rdns:delete") @DELETE @Path("/rdns/{serviceName}") @Consumes("*/*") Job<Void> deleteAll(@QueryParam("href") URI deviceURI)
Delete all Reverse DNS (PTR) records for a device. To wait for this call to complete useJobPredicates.awaitComplete(CloudDNSApi, Job)
.
-
-