InboundNatRulesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:inbound_nat_rules> attribute.

Inheritance
builtins.object
InboundNatRulesOperations

Constructor

InboundNatRulesOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a load balancer inbound NAT rule.

begin_delete

Deletes the specified load balancer inbound NAT rule.

get

Gets the specified load balancer inbound NAT rule.

list

Gets all the inbound NAT rules in a load balancer.

begin_create_or_update

Creates or updates a load balancer inbound NAT rule.

begin_create_or_update(resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, inbound_nat_rule_parameters: _models.InboundNatRule, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.InboundNatRule]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

load_balancer_name
Required
str

The name of the load balancer. Required.

inbound_nat_rule_name
Required
str

The name of the inbound NAT rule. Required.

inbound_nat_rule_parameters
Required

Parameters supplied to the create or update inbound NAT rule operation. Is either a InboundNatRule type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either InboundNatRule or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes the specified load balancer inbound NAT rule.

begin_delete(resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

load_balancer_name
Required
str

The name of the load balancer. Required.

inbound_nat_rule_name
Required
str

The name of the inbound NAT rule. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Gets the specified load balancer inbound NAT rule.

get(resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, *, expand: str | None = None, **kwargs: Any) -> InboundNatRule

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

load_balancer_name
Required
str

The name of the load balancer. Required.

inbound_nat_rule_name
Required
str

The name of the inbound NAT rule. Required.

Keyword-Only Parameters

Name Description
expand
str

Expands referenced resources. Default value is None.

Returns

Type Description

InboundNatRule or the result of cls(response)

Exceptions

Type Description

list

Gets all the inbound NAT rules in a load balancer.

list(resource_group_name: str, load_balancer_name: str, **kwargs: Any) -> Iterable[InboundNatRule]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

load_balancer_name
Required
str

The name of the load balancer. Required.

Returns

Type Description

An iterator like instance of either InboundNatRule or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>