ReplicationPolicies interface

Interface representing a ReplicationPolicies.

Methods

beginCreate(string, string, string, CreatePolicyInput, ReplicationPoliciesCreateOptionalParams)

The operation to create a replication policy.

beginCreateAndWait(string, string, string, CreatePolicyInput, ReplicationPoliciesCreateOptionalParams)

The operation to create a replication policy.

beginDelete(string, string, string, ReplicationPoliciesDeleteOptionalParams)

The operation to delete a replication policy.

beginDeleteAndWait(string, string, string, ReplicationPoliciesDeleteOptionalParams)

The operation to delete a replication policy.

beginUpdate(string, string, string, UpdatePolicyInput, ReplicationPoliciesUpdateOptionalParams)

The operation to update a replication policy.

beginUpdateAndWait(string, string, string, UpdatePolicyInput, ReplicationPoliciesUpdateOptionalParams)

The operation to update a replication policy.

get(string, string, string, ReplicationPoliciesGetOptionalParams)

Gets the details of a replication policy.

list(string, string, ReplicationPoliciesListOptionalParams)

Lists the replication policies for a vault.

Method Details

beginCreate(string, string, string, CreatePolicyInput, ReplicationPoliciesCreateOptionalParams)

The operation to create a replication policy.

function beginCreate(resourceName: string, resourceGroupName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams): Promise<SimplePollerLike<OperationState<Policy>, Policy>>

Parameters

resourceName

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

Replication policy name.

input
CreatePolicyInput

Create policy input.

options
ReplicationPoliciesCreateOptionalParams

The options parameters.

Returns

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

beginCreateAndWait(string, string, string, CreatePolicyInput, ReplicationPoliciesCreateOptionalParams)

The operation to create a replication policy.

function beginCreateAndWait(resourceName: string, resourceGroupName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams): Promise<Policy>

Parameters

resourceName

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

Replication policy name.

input
CreatePolicyInput

Create policy input.

options
ReplicationPoliciesCreateOptionalParams

The options parameters.

Returns

Promise<Policy>

beginDelete(string, string, string, ReplicationPoliciesDeleteOptionalParams)

The operation to delete a replication policy.

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

Parameters

resourceName

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

Replication policy name.

options
ReplicationPoliciesDeleteOptionalParams

The options parameters.

Returns

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

beginDeleteAndWait(string, string, string, ReplicationPoliciesDeleteOptionalParams)

The operation to delete a replication policy.

function beginDeleteAndWait(resourceName: string, resourceGroupName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams): Promise<void>

Parameters

resourceName

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

Replication policy name.

options
ReplicationPoliciesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

beginUpdate(string, string, string, UpdatePolicyInput, ReplicationPoliciesUpdateOptionalParams)

The operation to update a replication policy.

function beginUpdate(resourceName: string, resourceGroupName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Policy>, Policy>>

Parameters

resourceName

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

Policy Id.

input
UpdatePolicyInput

Update Policy Input.

options
ReplicationPoliciesUpdateOptionalParams

The options parameters.

Returns

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

beginUpdateAndWait(string, string, string, UpdatePolicyInput, ReplicationPoliciesUpdateOptionalParams)

The operation to update a replication policy.

function beginUpdateAndWait(resourceName: string, resourceGroupName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams): Promise<Policy>

Parameters

resourceName

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

Policy Id.

input
UpdatePolicyInput

Update Policy Input.

options
ReplicationPoliciesUpdateOptionalParams

The options parameters.

Returns

Promise<Policy>

get(string, string, string, ReplicationPoliciesGetOptionalParams)

Gets the details of a replication policy.

function get(resourceName: string, resourceGroupName: string, policyName: string, options?: ReplicationPoliciesGetOptionalParams): Promise<Policy>

Parameters

resourceName

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

Replication policy name.

options
ReplicationPoliciesGetOptionalParams

The options parameters.

Returns

Promise<Policy>

list(string, string, ReplicationPoliciesListOptionalParams)

Lists the replication policies for a vault.

function list(resourceName: string, resourceGroupName: string, options?: ReplicationPoliciesListOptionalParams): PagedAsyncIterableIterator<Policy, Policy[], PageSettings>

Parameters

resourceName

string

The name of the recovery services vault.

resourceGroupName

string

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

options
ReplicationPoliciesListOptionalParams

The options parameters.

Returns