NetworkExtensions.GetIPAllocationsAsync Method

Definition

Gets all IpAllocations in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/IpAllocations
  • Operation Id: IpAllocations_List
  • Default Api Version: 2024-03-01
  • Resource: IPAllocationResource
public static Azure.AsyncPageable<Azure.ResourceManager.Network.IPAllocationResource> GetIPAllocationsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetIPAllocationsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.IPAllocationResource>
<Extension()>
Public Function GetIPAllocationsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of IPAllocationResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to