HciVmExtensions.GetHciVmLogicalNetworks Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetHciVmLogicalNetworks(ResourceGroupResource) |
Gets a collection of HciVmLogicalNetworkResources in the ResourceGroupResource. <item>MockingTo mock this method, please mock GetHciVmLogicalNetworks() instead.</item> |
GetHciVmLogicalNetworks(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.
|
GetHciVmLogicalNetworks(ResourceGroupResource)
- Source:
- HciVmExtensions.cs
Gets a collection of HciVmLogicalNetworkResources in the ResourceGroupResource. <item>MockingTo mock this method, please mock GetHciVmLogicalNetworks() instead.</item>
public static Azure.ResourceManager.Hci.Vm.HciVmLogicalNetworkCollection GetHciVmLogicalNetworks(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetHciVmLogicalNetworks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.Vm.HciVmLogicalNetworkCollection
<Extension()>
Public Function GetHciVmLogicalNetworks (resourceGroupResource As ResourceGroupResource) As HciVmLogicalNetworkCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of HciVmLogicalNetworkResources and their operations over a HciVmLogicalNetworkResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetHciVmLogicalNetworks(SubscriptionResource, CancellationToken)
- Source:
- HciVmExtensions.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: LogicalNetwork_ListAll
- Default Api Version: 2025-06-01-preview
- Resource: HciVmLogicalNetworkResource
public static Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmLogicalNetworkResource> GetHciVmLogicalNetworks(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetHciVmLogicalNetworks : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmLogicalNetworkResource>
<Extension()>
Public Function GetHciVmLogicalNetworks (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HciVmLogicalNetworkResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HciVmLogicalNetworkResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.