MockableHciVmResourceGroupResource.GetHciVmNatGateway 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.
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.