ucscsdk/utils/ucscdomain.py
def _is_domain_available(handle, domain_id):
    """
    This internal method returns True if domain is available currently
    else returns False

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        domain_id(str): ID of domain from domain object

    Returns:
        True or False depending on domain's availability

    Example:
        _is_domain_available(handle, domain_id="1008")
    """

    extpol_client_dn = "extpol/reg/clients/client-" + domain_id
    extpol_client = handle.query_dn(extpol_client_dn)

    if (extpol_client and (extpol_client.oper_state == "registered")):
        return True

    return False

    This internal method returns True if domain is available currently
    else returns False

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        domain_id(str): ID of domain from domain object

    Returns:
        True or False depending on domain's availability

    Example:
        _is_domain_available(handle, domain_id="1008")
    
This internal method returns True if domain is available currently
else returns False
This internal method returns True if domain is available currently else returns False
def _is_domain_available(handle, domain_id):
    extpol_client_dn = "extpol/reg/clients/client-" + domain_id
    extpol_client = handle.query_dn(extpol_client_dn)
    if (extpol_client and (extpol_client.oper_state == "registered")):
        return True
    return False
def _is_domain_available ( handle , domain_id ) : extpol_client_dn = "extpol/reg/clients/client-" + domain_id extpol_client = handle . query_dn ( extpol_client_dn ) if ( extpol_client and ( extpol_client . oper_state == "registered" ) ) : return True return False
This internal method returns True if domain is available currently
else returns False
This internal method returns True if domain is available currently else returns False
"""
    This internal method returns True if domain is available currently
    else returns False

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        domain_id(str): ID of domain from domain object

    Returns:
        True or False depending on domain's availability

    Example:
        _is_domain_available(handle, domain_id="1008")
    """
True or False depending on domain's availability
True or False depending on domain ' s availability
handle
UcsCentral Connection handle
UcsCentral Connection handle
domain_id
ID of domain from domain object
ID of domain from domain object
examples
None