Compartir a través de


ProtectionPolicies interface

Interface representing a ProtectionPolicies.

Methods

beginDelete(string, string, string, ProtectionPoliciesDeleteOptionalParams)

Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetProtectionPolicyOperationResult API.

beginDeleteAndWait(string, string, string, ProtectionPoliciesDeleteOptionalParams)

Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetProtectionPolicyOperationResult API.

createOrUpdate(string, string, string, ProtectionPolicyResource, ProtectionPoliciesCreateOrUpdateOptionalParams)

Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API.

get(string, string, string, ProtectionPoliciesGetOptionalParams)

Provides the details of the backup policies associated to Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API.

Method Details

beginDelete(string, string, string, ProtectionPoliciesDeleteOptionalParams)

Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetProtectionPolicyOperationResult API.

function beginDelete(vaultName: string, resourceGroupName: string, policyName: string, options?: ProtectionPoliciesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

vaultName

string

The name of the recovery services vault.

resourceGroupName

string

The name of the resource group where the recovery services vault is present.

policyName

string

Backup policy to be deleted.

options
ProtectionPoliciesDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, ProtectionPoliciesDeleteOptionalParams)

Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetProtectionPolicyOperationResult API.

function beginDeleteAndWait(vaultName: string, resourceGroupName: string, policyName: string, options?: ProtectionPoliciesDeleteOptionalParams): Promise<void>

Parameters

vaultName

string

The name of the recovery services vault.

resourceGroupName

string

The name of the resource group where the recovery services vault is present.

policyName

string

Backup policy to be deleted.

options
ProtectionPoliciesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

createOrUpdate(string, string, string, ProtectionPolicyResource, ProtectionPoliciesCreateOrUpdateOptionalParams)

Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API.

function createOrUpdate(vaultName: string, resourceGroupName: string, policyName: string, parameters: ProtectionPolicyResource, options?: ProtectionPoliciesCreateOrUpdateOptionalParams): Promise<ProtectionPolicyResource>

Parameters

vaultName

string

The name of the recovery services vault.

resourceGroupName

string

The name of the resource group where the recovery services vault is present.

policyName

string

Backup policy to be created.

parameters
ProtectionPolicyResource

resource backup policy

options
ProtectionPoliciesCreateOrUpdateOptionalParams

The options parameters.

Returns

get(string, string, string, ProtectionPoliciesGetOptionalParams)

Provides the details of the backup policies associated to Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API.

function get(vaultName: string, resourceGroupName: string, policyName: string, options?: ProtectionPoliciesGetOptionalParams): Promise<ProtectionPolicyResource>

Parameters

vaultName

string

The name of the recovery services vault.

resourceGroupName

string

The name of the resource group where the recovery services vault is present.

policyName

string

Backup policy information to be fetched.

options
ProtectionPoliciesGetOptionalParams

The options parameters.

Returns