Share via


MockableHciVmResourceGroupResource.GetHciVmLogicalNetwork Method

Definition

The operation to get a logical network.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}
  • Operation Id: LogicalNetwork_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmLogicalNetworkResource
public virtual Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmLogicalNetworkResource> GetHciVmLogicalNetwork(string logicalNetworkName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHciVmLogicalNetwork : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmLogicalNetworkResource>
override this.GetHciVmLogicalNetwork : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmLogicalNetworkResource>
Public Overridable Function GetHciVmLogicalNetwork (logicalNetworkName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of HciVmLogicalNetworkResource)

Parameters

logicalNetworkName
String

Name of the logical network.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

logicalNetworkName is null.

logicalNetworkName is an empty string, and was expected to be non-empty.

Applies to