Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure.service_fabric_mesh.gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectThis type describes properties of a gateway resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, gatewayResourceNameapi-versionGets the information about the gateway resource with the given name. The information include the description and other properties of the gateway.
list_by_resource_groupselectsubscriptionId, resourceGroupNameapi-versionGets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway.
list_by_subscriptionselectsubscriptionIdapi-versionGets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway.
createinsertsubscriptionId, resourceGroupName, gatewayResourceName, data__propertiesapi-versionCreates 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.
deletedeletesubscriptionId, resourceGroupName, gatewayResourceNameapi-versionDeletes the gateway resource identified by the name.

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
gatewayResourceNamestringThe identity of the gateway.
resourceGroupNamestringAzure resource group name
subscriptionIdstringThe customer subscription identifier
api-versionstringThe version of the API. This parameter is required and its value must be 2018-09-01-preview.

SELECT examples

Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway.

SELECT
location,
properties,
tags
FROM azure.service_fabric_mesh.gateways
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND gatewayResourceName = '{{ gatewayResourceName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Creates 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.

INSERT INTO azure.service_fabric_mesh.gateways (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
gatewayResourceName,
api-version
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ gatewayResourceName }}',
'{{ api-version }}'
RETURNING
location,
properties,
tags
;

DELETE examples

Deletes the gateway resource identified by the name.

DELETE FROM azure.service_fabric_mesh.gateways
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND gatewayResourceName = '{{ gatewayResourceName }}' --required
AND api-version = '{{ api-version }}'
;