def reactivate(domain_name):
 opts = salt.utils.namecheap.get_opts('namecheap.domains.reactivate')
 opts['DomainName'] = domain_name
 response_xml = salt.utils.namecheap.post_request(opts)
 if (response_xml is None):
  return {}
 domainreactivateresult = response_xml.getElementsByTagName('DomainReactivateResult')[0]
 return salt.utils.namecheap.xml_to_dict(domainreactivateresult)

def reactivate ( domain_name ) : opts = salt . utils . namecheap . get_opts ( 'namecheap.domains.reactivate' ) opts [ 'DomainName' ] = domain_name response_xml = salt . utils . namecheap . post_request ( opts ) if ( response_xml is None ) : return { } domainreactivateresult = response_xml . getElementsByTagName ( 'DomainReactivateResult' ) [ 0 ] return salt . utils . namecheap . xml_to_dict ( domainreactivateresult )
try to reactivate the expired domain name returns the following information in a dictionary issuccess bool indicates whether the domain was renewed successfully amount charged for reactivation orderid unique integer value for the order transactionid unique integer value for the transaction cli example: .