共用方式為


InboundNatRuleCollection Class

Definition

A class representing a collection of InboundNatRuleResource and their operations. Each InboundNatRuleResource in the collection will belong to the same instance of LoadBalancerResource. To get an InboundNatRuleCollection instance call the GetInboundNatRules method from an instance of LoadBalancerResource.

public class InboundNatRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Network.InboundNatRuleResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.InboundNatRuleResource>
type InboundNatRuleCollection = class
    inherit ArmCollection
    interface seq<InboundNatRuleResource>
    interface IEnumerable
    interface IAsyncEnumerable<InboundNatRuleResource>
Public Class InboundNatRuleCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of InboundNatRuleResource), IEnumerable(Of InboundNatRuleResource)
Inheritance
InboundNatRuleCollection
Implements

Constructors

InboundNatRuleCollection()

Initializes a new instance of the InboundNatRuleCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, InboundNatRuleData, CancellationToken)

Creates or updates a load balancer inbound NAT rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Operation Id: InboundNatRules_CreateOrUpdate
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
CreateOrUpdateAsync(WaitUntil, String, InboundNatRuleData, CancellationToken)

Creates or updates a load balancer inbound NAT rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Operation Id: InboundNatRules_CreateOrUpdate
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
Exists(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Operation Id: InboundNatRules_Get
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Operation Id: InboundNatRules_Get
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
Get(String, String, CancellationToken)

Gets the specified load balancer inbound NAT rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Operation Id: InboundNatRules_Get
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
GetAll(CancellationToken)

Gets all the inbound NAT rules in a load balancer.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules
  • Operation Id: InboundNatRules_List
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
GetAllAsync(CancellationToken)

Gets all the inbound NAT rules in a load balancer.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules
  • Operation Id: InboundNatRules_List
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
GetAsync(String, String, CancellationToken)

Gets the specified load balancer inbound NAT rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Operation Id: InboundNatRules_Get
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Operation Id: InboundNatRules_Get
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Operation Id: InboundNatRules_Get
  • Default Api Version: 2023-09-01
  • Resource: InboundNatRuleResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<InboundNatRuleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<InboundNatRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to