Skip to main content

internet_gateway_rules

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

Overview

Nameinternet_gateway_rules
TypeResource
Idazure.managed_network_fabric.internet_gateway_rules

Fields

NameDatatypeDescription
annotationtextfield from the properties object
internetGatewayRuleNametextfield from the properties object
internet_gateway_idstextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
rule_propertiestextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinternetGatewayRuleName, resourceGroupName, subscriptionIdGets an Internet Gateway Rule resource.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdImplements Internet Gateway Rules list by resource group GET method.
list_by_subscriptionSELECTsubscriptionIdList all Internet Gateway rules in the given subscription.
createINSERTinternetGatewayRuleName, resourceGroupName, subscriptionId, data__propertiesCreates an Internet Gateway rule resource.
deleteDELETEinternetGatewayRuleName, resourceGroupName, subscriptionIdImplements Internet Gateway Rules DELETE method.
updateUPDATEinternetGatewayRuleName, resourceGroupName, subscriptionIdAPI to update certain properties of the Internet Gateway Rule resource.

SELECT examples

List all Internet Gateway rules in the given subscription.

SELECT
annotation,
internetGatewayRuleName,
internet_gateway_ids,
location,
provisioning_state,
resourceGroupName,
rule_properties,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_internet_gateway_rules
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.managed_network_fabric.internet_gateway_rules (
internetGatewayRuleName,
resourceGroupName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ internetGatewayRuleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a internet_gateway_rules resource.

/*+ update */
UPDATE azure.managed_network_fabric.internet_gateway_rules
SET
tags = '{{ tags }}'
WHERE
internetGatewayRuleName = '{{ internetGatewayRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified internet_gateway_rules resource.

/*+ delete */
DELETE FROM azure.managed_network_fabric.internet_gateway_rules
WHERE internetGatewayRuleName = '{{ internetGatewayRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';