HciVmExtensions.GetHciVmNatGateways 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
| Name | Description |
|---|---|
| GetHciVmNatGateways(ResourceGroupResource) |
Gets a collection of HciVmNatGateways in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetHciVmNatGateways() instead. </item> |
| GetHciVmNatGateways(SubscriptionResource, CancellationToken) |
Lists all of the natGateways in the specified subscription. Use the nextLink property in the response to get the next page of NatGateway. <item> Mocking. To mock this method, please mock GetHciVmNatGateways(CancellationToken) instead. </item> |
GetHciVmNatGateways(ResourceGroupResource)
- Source:
- HciVmExtensions.cs
Gets a collection of HciVmNatGateways in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetHciVmNatGateways() instead. </item>
public static Azure.ResourceManager.Hci.Vm.HciVmNatGatewayCollection GetHciVmNatGateways(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetHciVmNatGateways : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.Vm.HciVmNatGatewayCollection
<Extension()>
Public Function GetHciVmNatGateways (resourceGroupResource As ResourceGroupResource) As HciVmNatGatewayCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
Returns
An object representing collection of HciVmNatGateways and their operations over a HciVmNatGatewayResource.
Exceptions
resourceGroupResource is null.
Applies to
GetHciVmNatGateways(SubscriptionResource, CancellationToken)
- Source:
- HciVmExtensions.cs
Lists all of the natGateways in the specified subscription. Use the nextLink property in the response to get the next page of NatGateway. <item> Mocking. To mock this method, please mock GetHciVmNatGateways(CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmNatGatewayResource> GetHciVmNatGateways(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetHciVmNatGateways : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmNatGatewayResource>
<Extension()>
Public Function GetHciVmNatGateways (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HciVmNatGatewayResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HciVmNatGatewayResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.