Package version:

Interface representing a ReplicationPolicies.

interface ReplicationPolicies {
    beginCreate(resourceGroupName: string, resourceName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams): Promise<SimplePollerLike<OperationState<Policy>, Policy>>;
    beginCreateAndWait(resourceGroupName: string, resourceName: string, policyName: string, input: CreatePolicyInput, options?: ReplicationPoliciesCreateOptionalParams): Promise<Policy>;
    beginDelete(resourceGroupName: string, resourceName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
    beginDeleteAndWait(resourceGroupName: string, resourceName: string, policyName: string, options?: ReplicationPoliciesDeleteOptionalParams): Promise<void>;
    beginUpdate(resourceGroupName: string, resourceName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Policy>, Policy>>;
    beginUpdateAndWait(resourceGroupName: string, resourceName: string, policyName: string, input: UpdatePolicyInput, options?: ReplicationPoliciesUpdateOptionalParams): Promise<Policy>;
    get(resourceGroupName: string, resourceName: string, policyName: string, options?: ReplicationPoliciesGetOptionalParams): Promise<Policy>;
    list(resourceGroupName: string, resourceName: string, options?: ReplicationPoliciesListOptionalParams): PagedAsyncIterableIterator<Policy>;
}

Methods

  • The operation to create a replication policy.

    Parameters

    • resourceGroupName: string

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

    • resourceName: string

      The name of the recovery services vault.

    • policyName: string

      Replication policy name.

    • input: CreatePolicyInput

      Create policy input.

    • Optionaloptions: ReplicationPoliciesCreateOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<Policy>, Policy>>

  • The operation to delete a replication policy.

    Parameters

    • resourceGroupName: string

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

    • resourceName: string

      The name of the recovery services vault.

    • policyName: string

      Replication policy name.

    • Optionaloptions: ReplicationPoliciesDeleteOptionalParams

      The options parameters.

    Returns Promise<SimplePollerLike<OperationState<void>, void>>

  • The operation to delete a replication policy.

    Parameters

    • resourceGroupName: string

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

    • resourceName: string

      The name of the recovery services vault.

    • policyName: string

      Replication policy name.

    • Optionaloptions: ReplicationPoliciesDeleteOptionalParams

      The options parameters.

    Returns Promise<void>

  • Gets the details of a replication policy.

    Parameters

    • resourceGroupName: string

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

    • resourceName: string

      The name of the recovery services vault.

    • policyName: string

      Replication policy name.

    • Optionaloptions: ReplicationPoliciesGetOptionalParams

      The options parameters.

    Returns Promise<Policy>

  • Lists the replication policies for a vault.

    Parameters

    • resourceGroupName: string

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

    • resourceName: string

      The name of the recovery services vault.

    • Optionaloptions: ReplicationPoliciesListOptionalParams

      The options parameters.

    Returns PagedAsyncIterableIterator<Policy>