Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure.service_fabric_mesh.gateways

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
destination_networktextfield from the properties object
gatewayResourceNametextfield from the properties object
httptextfield from the properties object
ip_addresstextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
source_networktextfield from the properties object
statustextfield from the properties object
status_detailstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
tcptextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgatewayResourceName, resourceGroupName, subscriptionIdGets the information about the gateway resource with the given name. The information include the description and other properties of the gateway.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway.
list_by_subscriptionSELECTsubscriptionIdGets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway.
createINSERTgatewayResourceName, resourceGroupName, subscriptionId, data__propertiesCreates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application.
deleteDELETEgatewayResourceName, resourceGroupName, subscriptionIdDeletes the gateway resource identified by the name.

SELECT examples

Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway.

SELECT
description,
destination_network,
gatewayResourceName,
http,
ip_address,
location,
provisioning_state,
resourceGroupName,
source_network,
status,
status_details,
subscriptionId,
tags,
tcp
FROM azure.service_fabric_mesh.vw_gateways
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.service_fabric_mesh.gateways (
gatewayResourceName,
resourceGroupName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ gatewayResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified gateways resource.

/*+ delete */
DELETE FROM azure.service_fabric_mesh.gateways
WHERE gatewayResourceName = '{{ gatewayResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';