Package com.dnsimple.endpoints
Class Registrar
java.lang.Object
com.dnsimple.endpoints.Registrar
Provides access to the DNSimple Registrar API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizeTransferOut(Number account, String domain) Authorizes the transfer of a domain out of DNSimple.cancelDomainTransfer(Number account, String domain, Number domainTransferId) Cancels an in progress domain transfer.changeDomainDelegation(Number account, String domain, List<String> nameServerNames) Change name servers the domain is delegating to.changeDomainDelegationFromVanity(Number account, String domain) Change the domain delegation back to the standard DNSimple name servers.changeDomainDelegationToVanity(Number account, String domain, List<String> nameServerNames) Change the domain delegation to the specified vanity name servers.checkDomain(Number account, String domainName) Checks whether a domain is available for registration.checkRegistrantChange(Number account, CheckRegistrantChangeInput input) Retrieves the requirements of a registrant change.createRegistrantChange(Number account, CreateRegistrantChangeInput input) Start a registrant change.deleteRegistrantChange(Number account, Number registrantChange) Cancel an ongoing registrant change from the account.disableAutoRenewal(Number account, String domain) Disable auto renewal for the domain in the account.disableDomainTransferLock(Number account, String domain) Unlocks the domain to allow domain transfers.disableWhoisPrivacy(Number account, String domain) Disable whois privacy for the domain.enableAutoRenewal(Number account, String domain) Enable auto renewal for the domain in the account.enableDomainTransferLock(Number account, String domain) Locks the domain to prevent unauthorized transfers.enableWhoisPrivacy(Number account, String domain) Enable whois privacy for the domain.getDomainDelegation(Number account, String domain) Lists name servers the domain is delegating to.getDomainPremiumPrice(Number account, String domainName, DomainCheckPremiumPriceAction action) Deprecated, for removal: This API element is subject to removal in a future version.getDomainPrices(Number account, String domainName) Get prices for registration, transfer, and renewal for a domain.getDomainRegistration(Number account, String domainName, Number domainRegistration) Get the details of an existing domain registration.getDomainRenewal(Number account, String domainName, Number domainRenewal) Get the details of an existing domain renewal.getDomainTransfer(Number account, String domain, Number domainTransferId) Retrieves the details of an existing domain transfer.getDomainTransferLock(Number account, String domain) Gets the transfer lock status for a domain.getRegistrantChange(Number account, Number registrantChange) Retrieves the details of an existing registrant change.getWhoisPrivacy(Number account, String domain) Gets the whois privacy for the domain.listRegistrantChanges(Number account, ListOptions options) List registrant changes in the account.registerDomain(Number account, String domainName, RegistrationOptions options) Registers a domain.renewDomain(Number account, String domain, RenewOptions options) Renews a domain.renewWhoisPrivacy(Number account, String domain) Renew whois privacy for the domain.transferDomain(Number account, String domain, TransferOptions options) Starts the transfer of a domain to DNSimple.
-
Constructor Details
-
Registrar
-
-
Method Details
-
checkDomain
Checks whether a domain is available for registration.- Parameters:
account- The account IDdomainName- The domain to check- Returns:
- The check domain response
- See Also:
-
getDomainPremiumPrice
@Deprecated(since="0.9.1", forRemoval=true) public SimpleResponse<DomainPremiumPriceCheck> getDomainPremiumPrice(Number account, String domainName, DomainCheckPremiumPriceAction action) Deprecated, for removal: This API element is subject to removal in a future version.usegetDomainPrices(Number, String)insteadChecks the premium price of a domain for the provided action.- Parameters:
account- The account IDdomainName- The domain to checkaction- The action to get the price of- Returns:
- The premium price
- See Also:
-
getDomainPrices
Get prices for registration, transfer, and renewal for a domain.- Parameters:
account- The account IDdomainName- The domain to check the prices- Returns:
- the domain prices response
- See Also:
-
getDomainRegistration
public SimpleResponse<DomainRegistration> getDomainRegistration(Number account, String domainName, Number domainRegistration) Get the details of an existing domain registration.- Parameters:
account- The account IDdomainName- The domain to check the registrationdomainRegistration- The domain registration ID- Returns:
- the domain registration response
- See Also:
-
getDomainRenewal
public SimpleResponse<DomainRenewal> getDomainRenewal(Number account, String domainName, Number domainRenewal) Get the details of an existing domain renewal.- Parameters:
account- The account IDdomainName- The domain to check the renewaldomainRenewal- The domain renewal ID- Returns:
- the domain renewal response
- See Also:
-
registerDomain
public SimpleResponse<DomainRegistration> registerDomain(Number account, String domainName, RegistrationOptions options) Registers a domain.- Parameters:
account- The account IDdomainName- The domain to registeroptions- The options for the domain registration- Returns:
- The register domain response
- See Also:
-
transferDomain
public SimpleResponse<DomainTransfer> transferDomain(Number account, String domain, TransferOptions options) Starts the transfer of a domain to DNSimple.- Parameters:
account- The account IDdomain- The domain name or IDoptions- The options for the transfer- Returns:
- The transfer domain response
- See Also:
-
getDomainTransfer
public SimpleResponse<DomainTransfer> getDomainTransfer(Number account, String domain, Number domainTransferId) Retrieves the details of an existing domain transfer.- Parameters:
account- The account IDdomain- The domain name or IDdomainTransferId- The domain transfer ID- Returns:
- The transfer domain response
- See Also:
-
cancelDomainTransfer
public SimpleResponse<DomainTransfer> cancelDomainTransfer(Number account, String domain, Number domainTransferId) Cancels an in progress domain transfer.- Parameters:
account- The account IDdomain- The domain name or IDdomainTransferId- The domain transfer ID- Returns:
- The transfer domain response
- See Also:
-
renewDomain
public SimpleResponse<DomainRenewal> renewDomain(Number account, String domain, RenewOptions options) Renews a domain.- Parameters:
account- The account IDdomain- The domain name or IDoptions- The options for the renewal- Returns:
- The renew domain response
- See Also:
-
authorizeTransferOut
Authorizes the transfer of a domain out of DNSimple.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The transfer domain out response
- See Also:
-
enableAutoRenewal
Enable auto renewal for the domain in the account.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The enable auto renewal response
- See Also:
-
disableAutoRenewal
Disable auto renewal for the domain in the account.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The disable auto renewal response
- See Also:
-
getWhoisPrivacy
Gets the whois privacy for the domain.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The get whois privacy response
- See Also:
-
enableWhoisPrivacy
Enable whois privacy for the domain.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The enable whois privacy response
- See Also:
-
disableWhoisPrivacy
Disable whois privacy for the domain.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The disable whois privacy response
- See Also:
-
renewWhoisPrivacy
Renew whois privacy for the domain.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The disable whois privacy response
- See Also:
-
getDomainDelegation
Lists name servers the domain is delegating to.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The get domain delegation response
- See Also:
-
changeDomainDelegation
public ListResponse<String> changeDomainDelegation(Number account, String domain, List<String> nameServerNames) Change name servers the domain is delegating to.- Parameters:
account- The account IDdomain- The domain ID or namenameServerNames- The name server names to change the delegation to- Returns:
- The change domain delegation response
- See Also:
-
changeDomainDelegationToVanity
public ListResponse<VanityNameServer> changeDomainDelegationToVanity(Number account, String domain, List<String> nameServerNames) Change the domain delegation to the specified vanity name servers.- Parameters:
account- The account IDdomain- The domain ID or namenameServerNames- The vanity name server names- Returns:
- The change domain delegation to vanity response
- See Also:
-
changeDomainDelegationFromVanity
Change the domain delegation back to the standard DNSimple name servers.- Parameters:
account- The account IDdomain- The domain ID or name- Returns:
- The change domain delegation from vanity response
- See Also:
-
listRegistrantChanges
List registrant changes in the account.- Parameters:
account- The account IDoptions- List options- Returns:
- Registrant changes
- See Also:
-
createRegistrantChange
public SimpleResponse<RegistrantChange> createRegistrantChange(Number account, CreateRegistrantChangeInput input) Start a registrant change.- Parameters:
account- The account IDinput- The input parameters- Returns:
- The registrant change response
- See Also:
-
checkRegistrantChange
public SimpleResponse<RegistrantChangeCheck> checkRegistrantChange(Number account, CheckRegistrantChangeInput input) Retrieves the requirements of a registrant change.- Parameters:
account- The account IDinput- The domain and contact to check- Returns:
- The registrant change check response
- See Also:
-
getRegistrantChange
public SimpleResponse<RegistrantChange> getRegistrantChange(Number account, Number registrantChange) Retrieves the details of an existing registrant change.- Parameters:
account- The account IDregistrantChange- The registrant change- Returns:
- The registrant change response
- See Also:
-
deleteRegistrantChange
Cancel an ongoing registrant change from the account.- Parameters:
account- The account IDregistrantChange- The registrant change- Returns:
- The registrant change response
- See Also:
-
getDomainTransferLock
Gets the transfer lock status for a domain.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The transfer lock status
- See Also:
-
enableDomainTransferLock
Locks the domain to prevent unauthorized transfers.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The transfer lock status
- See Also:
-
disableDomainTransferLock
Unlocks the domain to allow domain transfers.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The transfer lock status
- See Also:
-
getDomainPrices(Number, String)instead