org.jclouds.glesys.features
Interface DomainApi


public interface DomainApi

Provides synchronous access to Domain requests.

Author:
Adam Lowe
See Also:
DomainAsyncApi,

Method Summary
 Domain create(String domain, 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 domain)
          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

com.google.common.collect.FluentIterable<Domain> list()
Get a list of all domains for this account.

Returns:
an account's associated domain objects.

get

Domain get(String domain)
Get a specific domain.

Returns:
the requested domain object.

create

Domain create(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

update

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

void delete(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

createRecord

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

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

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.