Skip to main content

inbound_nat_rules

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

Overview

Nameinbound_nat_rules
TypeResource
Idazure.network.inbound_nat_rules

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe 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.
backend_address_pooltextfield from the properties object
backend_ip_configurationtextfield from the properties object
backend_porttextfield from the properties object
enable_floating_iptextfield from the properties object
enable_tcp_resettextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
frontend_ip_configurationtextfield from the properties object
frontend_porttextfield from the properties object
frontend_port_range_endtextfield from the properties object
frontend_port_range_starttextfield from the properties object
idle_timeout_in_minutestextfield from the properties object
inboundNatRuleNametextfield from the properties object
loadBalancerNametextfield from the properties object
protocoltextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinboundNatRuleName, loadBalancerName, resourceGroupName, subscriptionIdGets the specified load balancer inbound NAT rule.
listSELECTloadBalancerName, resourceGroupName, subscriptionIdGets all the inbound NAT rules in a load balancer.
create_or_updateINSERTinboundNatRuleName, loadBalancerName, resourceGroupName, subscriptionIdCreates or updates a load balancer inbound NAT rule.
deleteDELETEinboundNatRuleName, loadBalancerName, resourceGroupName, subscriptionIdDeletes the specified load balancer inbound NAT rule.

SELECT examples

Gets all the inbound NAT rules in a load balancer.

SELECT
id,
name,
backend_address_pool,
backend_ip_configuration,
backend_port,
enable_floating_ip,
enable_tcp_reset,
etag,
frontend_ip_configuration,
frontend_port,
frontend_port_range_end,
frontend_port_range_start,
idle_timeout_in_minutes,
inboundNatRuleName,
loadBalancerName,
protocol,
provisioning_state,
resourceGroupName,
subscriptionId,
type
FROM azure.network.vw_inbound_nat_rules
WHERE loadBalancerName = '{{ loadBalancerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new inbound_nat_rules resource.

/*+ create */
INSERT INTO azure.network.inbound_nat_rules (
inboundNatRuleName,
loadBalancerName,
resourceGroupName,
subscriptionId,
properties,
name,
id
)
SELECT
'{{ inboundNatRuleName }}',
'{{ loadBalancerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified inbound_nat_rules resource.

/*+ delete */
DELETE FROM azure.network.inbound_nat_rules
WHERE inboundNatRuleName = '{{ inboundNatRuleName }}'
AND loadBalancerName = '{{ loadBalancerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';