Package com.dnsimple.endpoints
Class Domains
java.lang.Object
com.dnsimple.endpoints.Domains
Provides access to the DNSimple Domains API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptPush(Number account, Number push, Number contactId) Accept a push.createDelegationSignerRecord(Number account, String domain, DSRecordOptions options) Create a delegation signer record for a domain.createDomain(Number account, String name) Create a domain in an account.createEmailForward(Number account, String domain, String aliasName, String destinationEmail) Create an email forward for a domain.deleteDelegationSignerRecord(Number account, String domain, Number dsRecordId) Delete a delegation signer record from a domain.deleteDomain(Number account, String domain) Delete a domain from an account.deleteEmailForward(Number account, String domain, Number emailForward) Delete an email forward from a domain.disableDnssec(Number account, String domain) Disables DNSSEC on the domain.enableDnssec(Number account, String domain) Enables DNSSEC on the domain.getDelegationSignerRecord(Number account, String domain, Number dsRecordId) Get a delegation signer record for a domain using the delegation signer records's ID.Get DNSSEC status of the domain.Get a specific domain associated to an account using the domain's name or ID.getEmailForward(Number account, String domain, Number emailForward) Get a specific email forward associated to a domain using the email forward's ID.initiatePush(Number account, String domain, String newAccountEmail) Initiate a push.listDelegationSignerRecords(Number account, String domain) Lists the delegation signer records in the domain.listDelegationSignerRecords(Number account, String domain, ListOptions options) Lists the delegation signer records in the domain.listDomains(Number account) Lists the domains in the account.listDomains(Number account, ListOptions options) Lists the domains in the account.listEmailForwards(Number account, String domain) List email forwards under a given domain.listEmailForwards(Number account, String domain, ListOptions options) List email forwards under a given domain.listPushes(Number account) List pushes under a given domain.listPushes(Number account, ListOptions options) List pushes under a given domain.rejectPush(Number account, Number push) Reject a push.
-
Constructor Details
-
Domains
-
-
Method Details
-
listDomains
Lists the domains in the account.- Parameters:
account- The account ID- Returns:
- The list domains response
- See Also:
-
listDomains
Lists the domains in the account.- Parameters:
account- The account IDoptions- The options for the list request- Returns:
- The list domains response
- See Also:
-
createDomain
Create a domain in an account.- Parameters:
account- The account IDname- The name of the domain- Returns:
- The create domain response
- See Also:
-
getDomain
Get a specific domain associated to an account using the domain's name or ID.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The get domain response
- See Also:
-
deleteDomain
Delete a domain from an account.WARNING: this cannot be undone.
- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The delete domain response
- See Also:
-
enableDnssec
Enables DNSSEC on the domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The DNSSEC enable response
- See Also:
-
disableDnssec
Disables DNSSEC on the domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The DNSSEC disable response
- See Also:
-
getDnssec
Get DNSSEC status of the domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The get DNSSEC response
- See Also:
-
listDelegationSignerRecords
public PaginatedResponse<DelegationSignerRecord> listDelegationSignerRecords(Number account, String domain) Lists the delegation signer records in the domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The list delegation signer records response
- See Also:
-
listDelegationSignerRecords
public PaginatedResponse<DelegationSignerRecord> listDelegationSignerRecords(Number account, String domain, ListOptions options) Lists the delegation signer records in the domain.- Parameters:
account- The account IDdomain- The domain ID or name or nameoptions- The options for the list request- Returns:
- The list delegation signer records response
- See Also:
-
createDelegationSignerRecord
public SimpleResponse<DelegationSignerRecord> createDelegationSignerRecord(Number account, String domain, DSRecordOptions options) Create a delegation signer record for a domain.- Parameters:
account- The account IDdomain- The domain name or IDoptions- The options to create the DS record- Returns:
- The create delegation signer record response
- See Also:
-
getDelegationSignerRecord
public SimpleResponse<DelegationSignerRecord> getDelegationSignerRecord(Number account, String domain, Number dsRecordId) Get a delegation signer record for a domain using the delegation signer records's ID.- Parameters:
account- The account IDdomain- The domain name or IDdsRecordId- The delegation signer record ID- Returns:
- The get delegation signer record response
- See Also:
-
deleteDelegationSignerRecord
Delete a delegation signer record from a domain.WARNING: this cannot be undone.
- Parameters:
account- The account IDdomain- The domain ID or name or namedsRecordId- The delegation signer record ID- Returns:
- The delete delegation signer record response
- See Also:
-
listEmailForwards
List email forwards under a given domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The list email forwards response
- See Also:
-
listEmailForwards
public PaginatedResponse<EmailForward> listEmailForwards(Number account, String domain, ListOptions options) List email forwards under a given domain.- Parameters:
account- The account IDdomain- The domain ID or name or nameoptions- The options for the list request- Returns:
- The list email forwards response
- See Also:
-
createEmailForward
public SimpleResponse<EmailForward> createEmailForward(Number account, String domain, String aliasName, String destinationEmail) Create an email forward for a domain.- Parameters:
account- The account IDdomain- The domain name or IDaliasName- The email address the emails are send todestinationEmail- The email address the email address the emails are forwarded to.- Returns:
- The create email forward response
- See Also:
-
getEmailForward
public SimpleResponse<EmailForward> getEmailForward(Number account, String domain, Number emailForward) Get a specific email forward associated to a domain using the email forward's ID.- Parameters:
account- The account IDdomain- The domain name or IDemailForward- The email forward ID- Returns:
- The get email forward response
- See Also:
-
deleteEmailForward
Delete an email forward from a domain.WARNING: this cannot be undone.
- Parameters:
account- The account IDdomain- The domain ID or name or nameemailForward- The email forward ID- Returns:
- The delete email forward response
- See Also:
-
initiatePush
public SimpleResponse<DomainPush> initiatePush(Number account, String domain, String newAccountEmail) Initiate a push.- Parameters:
account- The account IDdomain- The domain name or IDnewAccountEmail- The email address of the target DNSimple account- Returns:
- The initiate push response
- See Also:
-
listPushes
List pushes under a given domain.- Parameters:
account- The account ID- Returns:
- The list pushes response
- See Also:
-
listPushes
List pushes under a given domain.- Parameters:
account- The account IDoptions- The options for the list request- Returns:
- The list pushes response
- See Also:
-
acceptPush
Accept a push.- Parameters:
account- The account IDpush- The push IDcontactId- A contact that belongs to the target DNSimple account- Returns:
- The accept push response
- See Also:
-
rejectPush
Reject a push.- Parameters:
account- The account IDpush- The push ID- Returns:
- The accept push response
- See Also:
-