Share via


HciExtensions.GetLogicalNetworks Method

Definition

Overloads

GetLogicalNetworks(SubscriptionResource, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/logicalNetworks
  • Operation Id: LogicalNetworks_ListAll
GetLogicalNetworks(ResourceGroupResource)

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

GetLogicalNetworks(SubscriptionResource, CancellationToken)

Source:
HciExtensions.cs

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

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetLogicalNetworks(ResourceGroupResource)

Source:
HciExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of LogicalNetworkResources and their operations over a LogicalNetworkResource.

Exceptions

resourceGroupResource is null.

Applies to