你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BackupPolicies interface

表示 BackupPolicies 的接口。

方法

beginBackupNow(string, string, string, string, string, BackupPoliciesBackupNowOptionalParams)

立即备份备份策略。

beginBackupNowAndWait(string, string, string, string, string, BackupPoliciesBackupNowOptionalParams)

立即备份备份策略。

beginCreateOrUpdate(string, string, string, string, BackupPolicy, BackupPoliciesCreateOrUpdateOptionalParams)

创建或更新备份策略。

beginCreateOrUpdateAndWait(string, string, string, string, BackupPolicy, BackupPoliciesCreateOrUpdateOptionalParams)

创建或更新备份策略。

beginDelete(string, string, string, string, BackupPoliciesDeleteOptionalParams)

删除备份策略。

beginDeleteAndWait(string, string, string, string, BackupPoliciesDeleteOptionalParams)

删除备份策略。

get(string, string, string, string, BackupPoliciesGetOptionalParams)

获取指定备份策略名称的属性。

listByDevice(string, string, string, BackupPoliciesListByDeviceOptionalParams)

获取设备中的所有备份策略。

方法详细信息

beginBackupNow(string, string, string, string, string, BackupPoliciesBackupNowOptionalParams)

立即备份备份策略。

function beginBackupNow(deviceName: string, backupPolicyName: string, backupType: string, resourceGroupName: string, managerName: string, options?: BackupPoliciesBackupNowOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>

参数

deviceName

string

设备名

backupPolicyName

string

备份策略名称。

backupType

string

备份类型。 这可以是 cloudSnapshot 或 localSnapshot。

resourceGroupName

string

资源组名称

managerName

string

经理姓名

options
BackupPoliciesBackupNowOptionalParams

选项参数。

返回

Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>

beginBackupNowAndWait(string, string, string, string, string, BackupPoliciesBackupNowOptionalParams)

立即备份备份策略。

function beginBackupNowAndWait(deviceName: string, backupPolicyName: string, backupType: string, resourceGroupName: string, managerName: string, options?: BackupPoliciesBackupNowOptionalParams): Promise<void>

参数

deviceName

string

设备名

backupPolicyName

string

备份策略名称。

backupType

string

备份类型。 这可以是 cloudSnapshot 或 localSnapshot。

resourceGroupName

string

资源组名称

managerName

string

经理姓名

options
BackupPoliciesBackupNowOptionalParams

选项参数。

返回

Promise<void>

beginCreateOrUpdate(string, string, string, string, BackupPolicy, BackupPoliciesCreateOrUpdateOptionalParams)

创建或更新备份策略。

function beginCreateOrUpdate(deviceName: string, backupPolicyName: string, resourceGroupName: string, managerName: string, parameters: BackupPolicy, options?: BackupPoliciesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<BackupPolicy>, BackupPolicy>>

参数

deviceName

string

设备名

backupPolicyName

string

要创建/更新的备份策略的名称。

resourceGroupName

string

资源组名称

managerName

string

经理姓名

parameters
BackupPolicy

备份策略。

返回

Promise<PollerLike<@azure/core-lro.PollOperationState<BackupPolicy>, BackupPolicy>>

beginCreateOrUpdateAndWait(string, string, string, string, BackupPolicy, BackupPoliciesCreateOrUpdateOptionalParams)

创建或更新备份策略。

function beginCreateOrUpdateAndWait(deviceName: string, backupPolicyName: string, resourceGroupName: string, managerName: string, parameters: BackupPolicy, options?: BackupPoliciesCreateOrUpdateOptionalParams): Promise<BackupPolicy>

参数

deviceName

string

设备名

backupPolicyName

string

要创建/更新的备份策略的名称。

resourceGroupName

string

资源组名称

managerName

string

经理姓名

parameters
BackupPolicy

备份策略。

返回

Promise<BackupPolicy>

beginDelete(string, string, string, string, BackupPoliciesDeleteOptionalParams)

删除备份策略。

function beginDelete(deviceName: string, backupPolicyName: string, resourceGroupName: string, managerName: string, options?: BackupPoliciesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>

参数

deviceName

string

设备名

backupPolicyName

string

备份策略的名称。

resourceGroupName

string

资源组名称

managerName

string

经理姓名

options
BackupPoliciesDeleteOptionalParams

选项参数。

返回

Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>

beginDeleteAndWait(string, string, string, string, BackupPoliciesDeleteOptionalParams)

删除备份策略。

function beginDeleteAndWait(deviceName: string, backupPolicyName: string, resourceGroupName: string, managerName: string, options?: BackupPoliciesDeleteOptionalParams): Promise<void>

参数

deviceName

string

设备名

backupPolicyName

string

备份策略的名称。

resourceGroupName

string

资源组名称

managerName

string

经理姓名

options
BackupPoliciesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, string, BackupPoliciesGetOptionalParams)

获取指定备份策略名称的属性。

function get(deviceName: string, backupPolicyName: string, resourceGroupName: string, managerName: string, options?: BackupPoliciesGetOptionalParams): Promise<BackupPolicy>

参数

deviceName

string

设备名

backupPolicyName

string

要提取的备份策略的名称。

resourceGroupName

string

资源组名称

managerName

string

经理姓名

options
BackupPoliciesGetOptionalParams

选项参数。

返回

Promise<BackupPolicy>

listByDevice(string, string, string, BackupPoliciesListByDeviceOptionalParams)

获取设备中的所有备份策略。

function listByDevice(deviceName: string, resourceGroupName: string, managerName: string, options?: BackupPoliciesListByDeviceOptionalParams): PagedAsyncIterableIterator<BackupPolicy, BackupPolicy[], PageSettings>

参数

deviceName

string

设备名

resourceGroupName

string

资源组名称

managerName

string

经理姓名

返回