Share via


MockableDataProtectionBackupSubscriptionResource.GetResourceGuardsAsync Method

Definition

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 virtual Azure.AsyncPageable<Azure.ResourceManager.DataProtectionBackup.ResourceGuardResource> GetResourceGuardsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetResourceGuardsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DataProtectionBackup.ResourceGuardResource>
override this.GetResourceGuardsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DataProtectionBackup.ResourceGuardResource>
Public Overridable Function GetResourceGuardsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ResourceGuardResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to