Modifier and Type | Method and Description |
---|---|
Domain |
create(String name,
AddDomainOptions... options)
Add a domain to the Glesys dns-system
|
DomainRecord |
createRecord(String domain,
String host,
String type,
String data,
AddRecordOptions... options)
Add a DNS Record
|
void |
delete(String domain)
Remove a domain to the Glesys dns-system
|
void |
deleteRecord(String recordId)
Delete a DNS record
|
Domain |
get(String name)
Get a specific domain.
|
com.google.common.collect.FluentIterable<Domain> |
list()
Get a list of all domains for this account.
|
Set<DomainRecord> |
listRecords(String domain)
Retrieve the DNS records for a given domain
|
Domain |
update(String domain,
DomainOptions options)
Update a domain to the Glesys dns-system
|
DomainRecord |
updateRecord(String recordId,
UpdateRecordOptions options)
Modify a specific DNS Record
|
@Named(value="domain:list") @POST @Path(value="/domain/list/format/json") @Consumes(value="application/json") com.google.common.collect.FluentIterable<Domain> list()
@Named(value="domain:details") @POST @Path(value="/domain/details/format/json") @Consumes(value="application/json") Domain get(@FormParam(value="domainname") String name)
@Named(value="domain:add") @POST @Path(value="/domain/add/format/json") @Consumes(value="application/json") Domain create(@FormParam(value="domainname") String name, AddDomainOptions... options)
name
- the name of the domain to add.options
- optional parameters@Named(value="domain:edit") @POST @Path(value="/domain/edit/format/json") @Consumes(value="application/json") Domain update(@FormParam(value="domainname") String domain, DomainOptions options)
domain
- the name of the domain to add.options
- optional parameters@Named(value="domain:delete") @POST @Path(value="/domain/delete/format/json") void delete(@FormParam(value="domainname") String domain)
domain
- the name of the domain to remove@Named(value="domain:listrecords") @POST @Path(value="/domain/listrecords/format/json") @Consumes(value="application/json") Set<DomainRecord> listRecords(@FormParam(value="domainname") String domain)
domain
- the name of the domain to retrieve records for@Named(value="domain:addrecord") @POST @Path(value="/domain/addrecord/format/json") @Consumes(value="application/json") DomainRecord createRecord(@FormParam(value="domainname") String domain, @FormParam(value="host") String host, @FormParam(value="type") String type, @FormParam(value="data") String data, AddRecordOptions... options)
domain
- the domain to add the record tooptions
- optional settings for the record@Named(value="domain:updaterecord") @POST @Path(value="/domain/updaterecord/format/json") @Consumes(value="application/json") DomainRecord updateRecord(@FormParam(value="recordid") String recordId, UpdateRecordOptions options)
recordId
- the id for the record to editoptions
- the settings to changeto retrieve the necessary ids
@Named(value="domain:deleterecord") @POST @Path(value="/domain/deleterecord/format/json") void deleteRecord(@FormParam(value="recordid") String recordId)
recordId
- the id for the record to deleteto retrieve the necessary ids
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.