Share via


DistributedAvailabilityGroupCollection.GetAllAsync(CancellationToken) Method

Definition

Gets a list of a distributed availability groups in instance.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/distributedAvailabilityGroups
  • Operation Id: DistributedAvailabilityGroups_ListByInstance
  • Default Api Version: 2021-11-01-preview
  • Resource: DistributedAvailabilityGroupResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Sql.DistributedAvailabilityGroupResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.DistributedAvailabilityGroupResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.DistributedAvailabilityGroupResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DistributedAvailabilityGroupResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to