Skip to main content

internet_gateway_rules

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

Overview

Nameinternet_gateway_rules
TypeResource
Idazure_extras.managed_network_fabric.internet_gateway_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
annotationstringSwitch configuration description.
internetGatewayIdsarrayList of Internet Gateway resource Id.
lastOperationobjectDetails of the last operation performed on the resource.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
rulePropertiesobjectRules for the InternetGateways. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, internet_gateway_rule_name, subscription_idGets an Internet Gateway Rule resource.
list_by_resource_groupselectresource_group_name, subscription_idImplements Internet Gateway Rules list by resource group GET method.
list_by_subscriptionselectsubscription_idList all Internet Gateway rules in the given subscription.
createinsertresource_group_name, internet_gateway_rule_name, subscription_id, location, propertiesCreates an Internet Gateway rule resource.
updateupdateresource_group_name, internet_gateway_rule_name, subscription_idAPI to update certain properties of the Internet Gateway Rule resource.
deletedeleteresource_group_name, internet_gateway_rule_name, subscription_idImplements 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
internet_gateway_rule_namestringName of the Internet Gateway rule. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets an Internet Gateway Rule resource.

SELECT
id,
name,
annotation,
internetGatewayIds,
lastOperation,
location,
provisioningState,
ruleProperties,
systemData,
tags,
type
FROM azure_extras.managed_network_fabric.internet_gateway_rules
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND internet_gateway_rule_name = '{{ internet_gateway_rule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates an Internet Gateway rule resource.

INSERT INTO azure_extras.managed_network_fabric.internet_gateway_rules (
tags,
location,
properties,
resource_group_name,
internet_gateway_rule_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ internet_gateway_rule_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

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

UPDATE azure_extras.managed_network_fabric.internet_gateway_rules
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND internet_gateway_rule_name = '{{ internet_gateway_rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Implements Internet Gateway Rules DELETE method.

DELETE FROM azure_extras.managed_network_fabric.internet_gateway_rules
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND internet_gateway_rule_name = '{{ internet_gateway_rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;