Skip to main content

internet_gateway_rules

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

Overview

Nameinternet_gateway_rules
TypeResource
Idazure.managed_network_fabric.internet_gateway_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectResource properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, internetGatewayRuleNameGets an Internet Gateway Rule resource.
list_by_resource_groupselectsubscriptionId, resourceGroupNameImplements Internet Gateway Rules list by resource group GET method.
list_by_subscriptionselectsubscriptionIdList all Internet Gateway rules in the given subscription.
createinsertsubscriptionId, resourceGroupName, internetGatewayRuleName, data__propertiesCreates an Internet Gateway rule resource.
updateupdatesubscriptionId, resourceGroupName, internetGatewayRuleNameAPI to update certain properties of the Internet Gateway Rule resource.
deletedeletesubscriptionId, resourceGroupName, internetGatewayRuleNameImplements Internet Gateway Rules DELETE method.

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
internetGatewayRuleNamestringName of the Internet Gateway rule.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets an Internet Gateway Rule resource.

SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.internet_gateway_rules
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND internetGatewayRuleName = '{{ internetGatewayRuleName }}' -- required
;

INSERT examples

Creates an Internet Gateway rule resource.

INSERT INTO azure.managed_network_fabric.internet_gateway_rules (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
internetGatewayRuleName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ internetGatewayRuleName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

API to update certain properties of the Internet Gateway Rule resource.

UPDATE azure.managed_network_fabric.internet_gateway_rules
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND internetGatewayRuleName = '{{ internetGatewayRuleName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Implements Internet Gateway Rules DELETE method.

DELETE FROM azure.managed_network_fabric.internet_gateway_rules
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND internetGatewayRuleName = '{{ internetGatewayRuleName }}' --required
;