Skip to main content

express_route_gateways

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

Overview

Nameexpress_route_gateways
TypeResource
Idazure.network.express_route_gateways

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
allow_non_virtual_wan_traffictextfield from the properties object
auto_scale_configurationtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
expressRouteGatewayNametextfield from the properties object
express_route_connectionstextfield from the properties object
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
virtual_hubtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTexpressRouteGatewayName, resourceGroupName, subscriptionIdFetches the details of a ExpressRoute gateway in a resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists ExpressRoute gateways in a given resource group.
list_by_subscriptionSELECTsubscriptionIdLists ExpressRoute gateways under a given subscription.
create_or_updateINSERTexpressRouteGatewayName, resourceGroupName, subscriptionIdCreates or updates a ExpressRoute gateway in a specified resource group.
deleteDELETEexpressRouteGatewayName, resourceGroupName, subscriptionIdDeletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be deleted when there are no connection subresources.
update_tagsEXECexpressRouteGatewayName, resourceGroupName, subscriptionIdUpdates express route gateway tags.

SELECT examples

Lists ExpressRoute gateways under a given subscription.

SELECT
id,
name,
allow_non_virtual_wan_traffic,
auto_scale_configuration,
etag,
expressRouteGatewayName,
express_route_connections,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
type,
virtual_hub
FROM azure.network.vw_express_route_gateways
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.express_route_gateways (
expressRouteGatewayName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ expressRouteGatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified express_route_gateways resource.

/*+ delete */
DELETE FROM azure.network.express_route_gateways
WHERE expressRouteGatewayName = '{{ expressRouteGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';