MockableHciVmSubscriptionResource.GetHciVmNatGateways Method

Definition

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

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to