MockableNetworkSubscriptionResource.GetNetworkInterfacesAsync Method

Definition

Gets all network interfaces in a subscription.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces.
  • Operation Id. : NetworkInterfaceOperationGroup_ListAll.
  • Default Api Version. : 2025-07-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkInterfaceResource> GetNetworkInterfacesAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetNetworkInterfacesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkInterfaceResource>
override this.GetNetworkInterfacesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkInterfaceResource>
Public Overridable Function GetNetworkInterfacesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkInterfaceResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to