Click or drag to resize

IWsDomainsGetDomainTlds Method

This method return a list of TLD (Top Level Domains) which can be purchased by Customer.

Namespace:  Aruba.Cloud.Domains.WsDomains
Assembly:  Aruba.Cloud.Domains.WsDomains (in Aruba.Cloud.Domains.WsDomains.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult<List<ExtendedDomainTldInfoEntity>> GetDomainTlds(
	WsRequest request
)

Parameters

request
Type: Aruba.Cloud.Domains.Common.Entities.WcfWsRequest

Return Value

Type: WsResultListExtendedDomainTldInfoEntity
Examples
By using the Aruba WsDomains method GetDomainTlds is possible to retrieve the list of TLD (Top Level Domain) which can be purchased by the Customer.
      /// WsDomains.GetDomainTlds Method (c# .NET)
      private static void Test_WsDomains_GetDomainTLD()
{
    using (var client = new WsDomains.WsDomainsClient())
    {
        client.ClientCredentials.UserName.UserName = ARU_0000;
        client.ClientCredentials.UserName.Password = ARU_PSW;

        // create the request object
        var req = new WsDomains.WsRequest()
        {
            Language = WsDomains.Languages.it
        };

        // call method GetDomainTlds 
        var res = client.GetDomainTlds(req);

        if (res.Success)
        {
            foreach (var t in res.Value)
            {
                Console.WriteLine(
                string.Format(
                    "{0} {1} {2}",
                    t.TldCode, t.TldID, t.Available));
            }
        }
        else
        {
            throw new Exception(res.ResultMessage);
        }
    }
    Console.ReadLine();
}
And here an example of response:
<GetDomainTldsResponse xmlns="https://api.services.cloud.it/WsDomains">
   <GetDomainTldsResult xmlns:a="http://schemas.datacontract.org/2004/07/Aruba.Cloud.Common" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:ExceptionInfo i:nil="true" xmlns:b="http://schemas.datacontract.org/2004/07/"/>
      <a:ResultCode>0</a:ResultCode>
      <a:ResultMessage i:nil="true"/>
      <a:Success>true</a:Success>
      <a:Value xmlns:b="http://schemas.datacontract.org/2004/07/Aruba.Cloud.Domains.Common.Entities">
         <b:ExtendedDomainTldInfoEntity>
            <b:AuthCodeRequired>true</b:AuthCodeRequired>
            <b:AutoRenewDaysBeforeExpiryDate>7</b:AutoRenewDaysBeforeExpiryDate>
            <b:Available>true</b:Available>
            <b:ContractsConsensusRequired>false</b:ContractsConsensusRequired>
            <b:DnsMaxQuantity>13</b:DnsMaxQuantity>
            <b:DnsMaxRegistrationQuantity>6</b:DnsMaxRegistrationQuantity>
            <b:DnsMinQuantity>2</b:DnsMinQuantity>
            <b:DomainLockStatusAvailable>true</b:DomainLockStatusAvailable>
            <b:DomainPrivacyAvailable>true</b:DomainPrivacyAvailable>
            <b:GracePeriod>40</b:GracePeriod>
            <b:NameMaxLength>63</b:NameMaxLength>
            <b:NameMinLength>3</b:NameMinLength>
            <b:RedemptionPeriod>30</b:RedemptionPeriod>
            <b:RegistrationMinimumPeriod>1</b:RegistrationMinimumPeriod>
            <b:SupportAuthCode>true</b:SupportAuthCode>
            <b:TldCode>cloud</b:TldCode>
            <b:TldID>11</b:TldID>
            <b:WhoIsPrivacy>true</b:WhoIsPrivacy>
            <b:PricingData>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>7.99000000</b:Price>
                  <b:PricyingTypes>FirstPurchase</b:PricyingTypes>
                  <b:ProductID>515</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>Domain</b:ResourceType>
               </b:ResourcePricingEntity>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>7.99000000</b:Price>
                  <b:PricyingTypes>Renew</b:PricyingTypes>
                  <b:ProductID>516</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>Domain</b:ResourceType>
               </b:ResourcePricingEntity>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>80.00000000</b:Price>
                  <b:PricyingTypes>Redeem</b:PricyingTypes>
                  <b:ProductID>517</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>Domain</b:ResourceType>
               </b:ResourcePricingEntity>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>0</b:Price>
                  <b:PricyingTypes>ChangeOwnerShip</b:PricyingTypes>
                  <b:ProductID>518</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>Domain</b:ResourceType>
               </b:ResourcePricingEntity>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>2.00000000</b:Price>
                  <b:PricyingTypes>FirstPurchase</b:PricyingTypes>
                  <b:ProductID>519</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>DomainPrivacy</b:ResourceType>
               </b:ResourcePricingEntity>
            </b:PricingData>
            <b:Tags xmlns:c="http://schemas.datacontract.org/2004/07/Aruba.Cloud.Provisioning.Entities.Tagging"/>
         </b:ExtendedDomainTldInfoEntity>
         <b:ExtendedDomainTldInfoEntity>
            <b:AuthCodeRequired>true</b:AuthCodeRequired>
            <b:AutoRenewDaysBeforeExpiryDate>7</b:AutoRenewDaysBeforeExpiryDate>
            <b:Available>true</b:Available>
            <b:ContractsConsensusRequired>false</b:ContractsConsensusRequired>
            <b:DnsMaxQuantity>13</b:DnsMaxQuantity>
            <b:DnsMaxRegistrationQuantity>6</b:DnsMaxRegistrationQuantity>
            <b:DnsMinQuantity>2</b:DnsMinQuantity>
            <b:DomainLockStatusAvailable>true</b:DomainLockStatusAvailable>
            <b:DomainPrivacyAvailable>true</b:DomainPrivacyAvailable>
            <b:GracePeriod>40</b:GracePeriod>
            <b:NameMaxLength>63</b:NameMaxLength>
            <b:NameMinLength>3</b:NameMinLength>
            <b:RedemptionPeriod>30</b:RedemptionPeriod>
            <b:RegistrationMinimumPeriod>1</b:RegistrationMinimumPeriod>
            <b:SupportAuthCode>true</b:SupportAuthCode>
            <b:TldCode>abogado</b:TldCode>
            <b:TldID>13</b:TldID>
            <b:WhoIsPrivacy>true</b:WhoIsPrivacy>
            <b:PricingData>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>7.99000000</b:Price>
                  <b:PricyingTypes>FirstPurchase</b:PricyingTypes>
                  <b:ProductID>520</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>Domain</b:ResourceType>
               </b:ResourcePricingEntity>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>8.99000000</b:Price>
                  <b:PricyingTypes>Renew</b:PricyingTypes>
                  <b:ProductID>521</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>Domain</b:ResourceType>
               </b:ResourcePricingEntity>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>9.99000000</b:Price>
                  <b:PricyingTypes>Redeem</b:PricyingTypes>
                  <b:ProductID>522</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>Domain</b:ResourceType>
               </b:ResourcePricingEntity>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>10.00000000</b:Price>
                  <b:PricyingTypes>ChangeOwnerShip</b:PricyingTypes>
                  <b:ProductID>523</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>Domain</b:ResourceType>
               </b:ResourcePricingEntity>
               <b:ResourcePricingEntity>
                  <b:CurrencyCode>EUR</b:CurrencyCode>
                  <b:Price>12.00000000</b:Price>
                  <b:PricyingTypes>FirstPurchase</b:PricyingTypes>
                  <b:ProductID>524</b:ProductID>
                  <b:ProductStatus>Available</b:ProductStatus>
                  <b:UserOffer i:nil="true"/>
                  <b:ResourceType>DomainPrivacy</b:ResourceType>
               </b:ResourcePricingEntity>
            </b:PricingData>
            <b:Tags xmlns:c="http://schemas.datacontract.org/2004/07/Aruba.Cloud.Provisioning.Entities.Tagging"/>
         </b:ExtendedDomainTldInfoEntity>
      </a:Value>
   </GetDomainTldsResult>
</GetDomainTldsResponse>
See Also