ucscsdk/utils/ucscdomain.py
def domain_group_create(handle, name,
                        descr="",
                        parent_dn="domaingroup-root"):
    """
    This method creates Domain Group.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        name (str): Name of the domain group.
        descr (str): Basic description.
        parent_dn (str): Parent org for the domain group

    Returns:
        None

    Example:
        domain_group_create(handle, name="sample_dom_grp")
    """

    from ucscsdk.mometa.org.OrgDomainGroup import\
        OrgDomainGroup

    org = handle.query_dn(parent_dn)
    if not org:
        raise UcscOperationError(
            "Domain group create",
            "org '%s' does not exist" % parent_dn)

    mo = OrgDomainGroup(parent_mo_or_dn=org.dn,
                        name=name,
                        descr=descr)
    handle.add_mo(mo)
    handle.commit()

    This method creates Domain Group.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        name (str): Name of the domain group.
        descr (str): Basic description.
        parent_dn (str): Parent org for the domain group

    Returns:
        None

    Example:
        domain_group_create(handle, name="sample_dom_grp")
    
This method creates Domain Group.
This method creates Domain Group .
def domain_group_create(handle, name,
                        descr="",
                        parent_dn="domaingroup-root"):
    from ucscsdk.mometa.org.OrgDomainGroup import\
        OrgDomainGroup
    org = handle.query_dn(parent_dn)
    if not org:
        raise UcscOperationError(
            "Domain group create",
            "org '%s' does not exist" % parent_dn)
    mo = OrgDomainGroup(parent_mo_or_dn=org.dn,
                        name=name,
                        descr=descr)
    handle.add_mo(mo)
    handle.commit()
def domain_group_create ( handle , name , descr = "" , parent_dn = "domaingroup-root" ) : from ucscsdk . mometa . org . OrgDomainGroup import OrgDomainGroup org = handle . query_dn ( parent_dn ) if not org : raise UcscOperationError ( "Domain group create" , "org '%s' does not exist" % parent_dn ) mo = OrgDomainGroup ( parent_mo_or_dn = org . dn , name = name , descr = descr ) handle . add_mo ( mo ) handle . commit ( )
This method creates Domain Group.
This method creates Domain Group .
"""
    This method creates Domain Group.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        name (str): Name of the domain group.
        descr (str): Basic description.
        parent_dn (str): Parent org for the domain group

    Returns:
        None

    Example:
        domain_group_create(handle, name="sample_dom_grp")
    """
None
handle
UcsCentral Connection handle
UcsCentral Connection handle
name
Name of the domain group.
Name of the domain group .
descr
None
parent_dn
Parent org for the domain group
Parent org for the domain group
examples
None