def get_info(domain_name):
    '''
    Returns information about the requested domain

    returns a dictionary of information about the domain_name

    domain_name
        string  Domain name to get information about

    CLI Example:

    .. code-block:: bash

        salt 'my-minion' namecheap_domains.get_info my-domain-name
    '''
    opts = salt.utils.namecheap.get_opts('namecheap.domains.getinfo')
    opts['DomainName'] = domain_name

    response_xml = salt.utils.namecheap.get_request(opts)

    if response_xml is None:
        return []

    domaingetinforesult = response_xml.getElementsByTagName("DomainGetInfoResult")[0]

    return salt.utils.namecheap.xml_to_dict(domaingetinforesult)
def get_info ( domain_name ) : opts = salt . utils . namecheap . get_opts ( 'namecheap.domains.getinfo' ) opts [ 'DomainName' ] = domain_name response_xml = salt . utils . namecheap . get_request ( opts ) if response_xml is None : return [ ] domaingetinforesult = response_xml . getElementsByTagName ( "DomainGetInfoResult" ) [ 0 ] return salt . utils . namecheap . xml_to_dict ( domaingetinforesult )
Returns information about the requested domain

    returns a dictionary of information about the domain_name

    domain_name
        string  Domain name to get information about

    CLI Example:

    .. code-block:: bash

        salt 'my-minion' namecheap_domains.get_info my-domain-name