org.jclouds.glesys.features
Interface DomainApi


public interface DomainApi

Provides synchronous access to Domain requests.

Author:
Adam Lowe
See Also:
DomainAsyncApi,

Method Summary
 Domain addDomain(String domain, AddDomainOptions... options)
          Add a domain to the Glesys dns-system
 DomainRecord addRecord(String domain, String host, String type, String data, AddRecordOptions... options)
          Add a DNS Record
 void deleteDomain(String domain)
          Remove a domain to the Glesys dns-system
 void deleteRecord(String recordId)
          Delete a DNS record
 Domain editDomain(String domain, DomainOptions... options)
          Edit a domain to the Glesys dns-system
 DomainRecord editRecord(String recordId, EditRecordOptions... options)
          Modify a specific DNS Record
 Domain getDomain(String domain)
          Get a specific domain.
 Set<Domain> listDomains()
          Get a list of all domains for this account.
 Set<DomainRecord> listRecords(String domain)
          Retrieve the DNS records for a given domain
 

Method Detail

listDomains

Set<Domain> listDomains()
Get a list of all domains for this account.

Returns:
an account's associated domain objects.

getDomain

Domain getDomain(String domain)
Get a specific domain.

Returns:
the requested domain object.

addDomain

Domain addDomain(String domain,
                 AddDomainOptions... options)
Add a domain to the Glesys dns-system

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

editDomain

Domain editDomain(String domain,
                  DomainOptions... options)
Edit 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

deleteDomain

void deleteDomain(String domain)
Remove a domain to the Glesys dns-system

Parameters:
domain - the name of the domain to remove

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

addRecord

DomainRecord addRecord(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

editRecord

DomainRecord editRecord(String recordId,
                        EditRecordOptions... 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

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-2012 jclouds. All Rights Reserved.