Skip to main content

inbound_nat_rules

Creates, updates, deletes, gets or lists an inbound_nat_rules resource.

Overview

Nameinbound_nat_rules
TypeResource
Idazure.network.inbound_nat_rules

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting InboundNatRule resource.

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of load balancer inbound NAT rule.
typestringType of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, loadBalancerName, inboundNatRuleName, subscriptionId$expandGets the specified load balancer inbound NAT rule.
listselectresourceGroupName, loadBalancerName, subscriptionIdGets all the inbound NAT rules in a load balancer.
create_or_updateinsertresourceGroupName, loadBalancerName, inboundNatRuleName, subscriptionIdCreates or updates a load balancer inbound NAT rule.
deletedeleteresourceGroupName, loadBalancerName, inboundNatRuleName, subscriptionIdDeletes the specified load balancer inbound NAT rule.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
inboundNatRuleNamestringThe name of the inbound NAT rule.
loadBalancerNamestringThe name of the load balancer.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands referenced resources.

SELECT examples

Gets the specified load balancer inbound NAT rule.

SELECT
id,
name,
etag,
properties,
type
FROM azure.network.inbound_nat_rules
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND loadBalancerName = '{{ loadBalancerName }}' -- required
AND inboundNatRuleName = '{{ inboundNatRuleName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates a load balancer inbound NAT rule.

INSERT INTO azure.network.inbound_nat_rules (
data__properties,
data__name,
data__id,
resourceGroupName,
loadBalancerName,
inboundNatRuleName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ name }}',
'{{ id }}',
'{{ resourceGroupName }}',
'{{ loadBalancerName }}',
'{{ inboundNatRuleName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
properties,
type
;

DELETE examples

Deletes the specified load balancer inbound NAT rule.

DELETE FROM azure.network.inbound_nat_rules
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND loadBalancerName = '{{ loadBalancerName }}' --required
AND inboundNatRuleName = '{{ inboundNatRuleName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;