SiteRecoveryPolicyCollection Class

Definition

A class representing a collection of SiteRecoveryPolicyResource and their operations. Each SiteRecoveryPolicyResource in the collection will belong to the same instance of ResourceGroupResource. To get a SiteRecoveryPolicyCollection instance call the GetSiteRecoveryPolicies method from an instance of ResourceGroupResource.

public class SiteRecoveryPolicyCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryPolicyResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryPolicyResource>
type SiteRecoveryPolicyCollection = class
    inherit ArmCollection
    interface seq<SiteRecoveryPolicyResource>
    interface IEnumerable
    interface IAsyncEnumerable<SiteRecoveryPolicyResource>
Public Class SiteRecoveryPolicyCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of SiteRecoveryPolicyResource), IEnumerable(Of SiteRecoveryPolicyResource)
Inheritance
SiteRecoveryPolicyCollection
Implements

Constructors

SiteRecoveryPolicyCollection()

Initializes a new instance of the SiteRecoveryPolicyCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, SiteRecoveryPolicyCreateOrUpdateContent, CancellationToken)

The operation to create a replication policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  • Operation Id: ReplicationPolicies_Create
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
CreateOrUpdateAsync(WaitUntil, String, SiteRecoveryPolicyCreateOrUpdateContent, CancellationToken)

The operation to create a replication policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  • Operation Id: ReplicationPolicies_Create
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  • Operation Id: ReplicationPolicies_Get
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  • Operation Id: ReplicationPolicies_Get
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
Get(String, CancellationToken)

Gets the details of a replication policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  • Operation Id: ReplicationPolicies_Get
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
GetAll(CancellationToken)

Lists the replication policies for a vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies
  • Operation Id: ReplicationPolicies_List
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
GetAllAsync(CancellationToken)

Lists the replication policies for a vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies
  • Operation Id: ReplicationPolicies_List
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
GetAsync(String, CancellationToken)

Gets the details of a replication policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  • Operation Id: ReplicationPolicies_Get
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  • Operation Id: ReplicationPolicies_Get
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}
  • Operation Id: ReplicationPolicies_Get
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<SiteRecoveryPolicyResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SiteRecoveryPolicyResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to