MockableHciVmResourceGroupResource.GetHciVmNatGateway Method

Definition

The operation to get a natGateway.

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

Parameters

natGatewayName
String

Name of the nat gateway.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

natGatewayName is null.

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

Applies to