DataProtectionBackupExtensions.GetResourceGuards Method

Definition

Overloads

GetResourceGuards(SubscriptionResource, CancellationToken)

Returns ResourceGuards collection belonging to a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/resourceGuards
  • Operation Id: ResourceGuards_GetResourcesInSubscription
  • Default Api Version: 2024-04-01
  • Resource: ResourceGuardResource
GetResourceGuards(ResourceGroupResource)

Gets a collection of ResourceGuardResources in the ResourceGroupResource. MockingTo mock this method, please mock GetResourceGuards() instead.

GetResourceGuards(SubscriptionResource, CancellationToken)

Source:
DataProtectionBackupExtensions.cs
Source:
DataProtectionBackupExtensions.cs

Returns ResourceGuards collection belonging to a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/resourceGuards
  • Operation Id: ResourceGuards_GetResourcesInSubscription
  • Default Api Version: 2024-04-01
  • Resource: ResourceGuardResource
public static Azure.Pageable<Azure.ResourceManager.DataProtectionBackup.ResourceGuardResource> GetResourceGuards (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetResourceGuards : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DataProtectionBackup.ResourceGuardResource>
<Extension()>
Public Function GetResourceGuards (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ResourceGuardResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ResourceGuardResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

GetResourceGuards(ResourceGroupResource)

Source:
DataProtectionBackupExtensions.cs
Source:
DataProtectionBackupExtensions.cs

Gets a collection of ResourceGuardResources in the ResourceGroupResource. MockingTo mock this method, please mock GetResourceGuards() instead.

public static Azure.ResourceManager.DataProtectionBackup.ResourceGuardCollection GetResourceGuards (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetResourceGuards : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DataProtectionBackup.ResourceGuardCollection
<Extension()>
Public Function GetResourceGuards (resourceGroupResource As ResourceGroupResource) As ResourceGuardCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ResourceGuardResources and their operations over a ResourceGuardResource.

Exceptions

resourceGroupResource is null.

Applies to