共用方式為


MockableNetworkSubscriptionResource.GetAvailableDelegationsAsync Method

Definition

Gets all of the available subnet delegations for this subscription in this region.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations
  • Operation Id: AvailableDelegations_List
  • Default Api Version: 2024-03-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.Models.AvailableDelegation> GetAvailableDelegationsAsync (Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAvailableDelegationsAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.Models.AvailableDelegation>
override this.GetAvailableDelegationsAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.Models.AvailableDelegation>
Public Overridable Function GetAvailableDelegationsAsync (location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AvailableDelegation)

Parameters

location
AzureLocation

The location of the subnet.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to