ucscsdk/utils/ucscbackup.py
def remove_schedule_backup_domain(handle, domain_group="root"):
    """
    remvove_schedule_backup_domain removes the schedule policy of Domain's
    full backup.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        domain_group (str): Fully qualified domain group name

    Example:
        remove_schedule_backup_domain(handle, domain_group="root/demo_domgrp")

    """

    from ..mometa.mgmt.MgmtBackupPolicy import MgmtBackupPolicyConsts
    from ucscsdk.utils.ucscdomain import get_domain_group_dn
    domain_group_dn = get_domain_group_dn(handle, domain_group)

    dn = domain_group_dn + "/db-backup-policy-default"

    mo = handle.query_dn(dn=dn)
    if not mo:
        raise UcscOperationError("Remove backup schedule",
                                 "Backup Schedule doesn't exist")

    mo.admin_state = MgmtBackupPolicyConsts.ADMIN_STATE_DISABLE

    handle.set_mo(mo)
    if domain_group != "root":
        handle.remove_mo(mo)
    handle.commit()

    remvove_schedule_backup_domain removes the schedule policy of Domain's
    full backup.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        domain_group (str): Fully qualified domain group name

    Example:
        remove_schedule_backup_domain(handle, domain_group="root/demo_domgrp")

    
remvove_schedule_backup_domain removes the schedule policy of Domain's
full backup.
remvove_schedule_backup_domain removes the schedule policy of Domain ' s full backup .
def remove_schedule_backup_domain(handle, domain_group="root"):
    from ..mometa.mgmt.MgmtBackupPolicy import MgmtBackupPolicyConsts
    from ucscsdk.utils.ucscdomain import get_domain_group_dn
    domain_group_dn = get_domain_group_dn(handle, domain_group)
    dn = domain_group_dn + "/db-backup-policy-default"
    mo = handle.query_dn(dn=dn)
    if not mo:
        raise UcscOperationError("Remove backup schedule",
                                 "Backup Schedule doesn't exist")
    mo.admin_state = MgmtBackupPolicyConsts.ADMIN_STATE_DISABLE
    handle.set_mo(mo)
    if domain_group != "root":
        handle.remove_mo(mo)
    handle.commit()
def remove_schedule_backup_domain ( handle , domain_group = "root" ) : from . . mometa . mgmt . MgmtBackupPolicy import MgmtBackupPolicyConsts from ucscsdk . utils . ucscdomain import get_domain_group_dn domain_group_dn = get_domain_group_dn ( handle , domain_group ) dn = domain_group_dn + "/db-backup-policy-default" mo = handle . query_dn ( dn = dn ) if not mo : raise UcscOperationError ( "Remove backup schedule" , "Backup Schedule doesn't exist" ) mo . admin_state = MgmtBackupPolicyConsts . ADMIN_STATE_DISABLE handle . set_mo ( mo ) if domain_group != "root" : handle . remove_mo ( mo ) handle . commit ( )
remvove_schedule_backup_domain removes the schedule policy of Domain's
full backup.
remvove_schedule_backup_domain removes the schedule policy of Domain ' s full backup .
"""
    remvove_schedule_backup_domain removes the schedule policy of Domain's
    full backup.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        domain_group (str): Fully qualified domain group name

    Example:
        remove_schedule_backup_domain(handle, domain_group="root/demo_domgrp")

    """
handle
UcsCentral Connection handle
UcsCentral Connection handle
domain_group
Fully qualified domain group name
Fully qualified domain group name
examples
None