org.jclouds.glesys.features
Interface DomainApi


public interface DomainApi

Provides synchronous access to Domain requests.

Author:
Adam Lowe
See Also:

Method Summary
 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
 

Method Detail

list

@Named(value="domain:list")
com.google.common.collect.FluentIterable<Domain> list()
Get a list of all domains for this account.

Returns:
an account's associated domain objects.

get

@Named(value="domain:details")
Domain get(String name)
Get a specific domain.

Returns:
the requested domain object.

create

@Named(value="domain:add")
Domain create(String name,
                    AddDomainOptions... options)
Add a domain to the Glesys dns-system

Parameters:
name - the name of the domain to add.
options - optional parameters
Returns:
information about the added domain

update

@Named(value="domain:edit")
Domain update(String domain,
                    DomainOptions options)
Update a domain to the Glesys dns-system

Parameters:
domain - the name of the domain to add.
options - optional parameters
Returns:
information about the modified domain

delete

@Named(value="domain:delete")
void delete(String domain)
Remove a domain to the Glesys dns-system

Parameters:
domain - the name of the domain to remove

listRecords

@Named(value="domain:listrecords")
Set<DomainRecord> listRecords(String domain)
Retrieve the DNS records for a given domain

Parameters:
domain - the name of the domain to retrieve records for

createRecord

@Named(value="domain:addrecord")
DomainRecord createRecord(String domain,
                                String host,
                                String type,
                                String data,
                                AddRecordOptions... options)
Add a DNS Record

Parameters:
domain - the domain to add the record to
options - optional settings for the record

updateRecord

@Named(value="domain:updaterecord")
DomainRecord updateRecord(String recordId,
                                UpdateRecordOptions options)
Modify a specific DNS Record

Parameters:
recordId - the id for the record to edit
options - the settings to change
See Also:
to retrieve the necessary ids

deleteRecord

@Named(value="domain:deleterecord")
void deleteRecord(String recordId)
Delete a DNS record

Parameters:
recordId - the id for the record to delete
See Also:
to retrieve the necessary ids


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.