次の方法で共有


HciExtensions.GetNetworkInterfaces Method

Definition

Overloads

GetNetworkInterfaces(ResourceGroupResource)

Gets a collection of NetworkInterfaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkInterfaces() instead.

GetNetworkInterfaces(SubscriptionResource, CancellationToken)

Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkInterfaces
  • Operation Id: NetworkInterfaces_ListAll

GetNetworkInterfaces(ResourceGroupResource)

Source:
HciExtensions.cs

Gets a collection of NetworkInterfaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkInterfaces() instead.

public static Azure.ResourceManager.Hci.NetworkInterfaceCollection GetNetworkInterfaces (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkInterfaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.NetworkInterfaceCollection
<Extension()>
Public Function GetNetworkInterfaces (resourceGroupResource As ResourceGroupResource) As NetworkInterfaceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkInterfaceResources and their operations over a NetworkInterfaceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkInterfaces(SubscriptionResource, CancellationToken)

Source:
HciExtensions.cs

Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkInterfaces
  • Operation Id: NetworkInterfaces_ListAll
public static Azure.Pageable<Azure.ResourceManager.Hci.NetworkInterfaceResource> GetNetworkInterfaces (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkInterfaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Hci.NetworkInterfaceResource>
<Extension()>
Public Function GetNetworkInterfaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NetworkInterfaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to