Skip to main content

internet_gateways

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

Overview

Nameinternet_gateways
TypeResource
Idazure_extras.managed_network_fabric.internet_gateways

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.
internetGatewayRuleIdstringARM Resource ID of the Internet Gateway Rule.
internetGatewayTypestringGateway Type of the resource. Known values are: "Infrastructure" and "Workload". (Infrastructure, Workload)
ipv4AddressstringIPv4 Address of Internet Gateway.
lastOperationobjectDetails of the last operation performed on the resource.
locationstringThe geo-location where the resource lives. Required.
networkFabricControllerIdstringARM Resource ID of the Network Fabric Controller. Required.
portintegerPort number of Internet Gateway.
provisioningStatestringProvisioning state of resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
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_name, subscription_idImplements Gateway GET method.
list_by_resource_groupselectresource_group_name, subscription_idDisplays Internet Gateways list by resource group GET method.
list_by_subscriptionselectsubscription_idDisplays Internet Gateways list by subscription GET method.
createinsertresource_group_name, internet_gateway_name, subscription_id, location, propertiesCreates a Network Fabric Service Internet Gateway resource instance.
updateupdateresource_group_name, internet_gateway_name, subscription_idExecute patch on Network Fabric Service Internet Gateway.
deletedeleteresource_group_name, internet_gateway_name, subscription_idExecute a delete on Network Fabric Service Internet Gateway.

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_namestringName of the Internet Gateway. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Implements Gateway GET method.

SELECT
id,
name,
annotation,
internetGatewayRuleId,
internetGatewayType,
ipv4Address,
lastOperation,
location,
networkFabricControllerId,
port,
provisioningState,
systemData,
tags,
type
FROM azure_extras.managed_network_fabric.internet_gateways
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND internet_gateway_name = '{{ internet_gateway_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a Network Fabric Service Internet Gateway resource instance.

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

UPDATE examples

Execute patch on Network Fabric Service Internet Gateway.

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

DELETE examples

Execute a delete on Network Fabric Service Internet Gateway.

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