Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure.programmableconnectivity.gateways

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectThe resource-specific properties for this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, gatewayNameGet a Gateway resource by name.
list_by_resource_groupselectsubscriptionId, resourceGroupNameList Gateway resources by resource group.
list_by_subscriptionselectsubscriptionIdList Gateway resources by subscription ID.
create_or_updateinsertsubscriptionId, resourceGroupName, gatewayNameCreate or update an APC Gateway.
updateupdatesubscriptionId, resourceGroupName, gatewayNameUpdate Gateway tags.
deletedeletesubscriptionId, resourceGroupName, gatewayNameDelete a 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
gatewayNamestringAzure Programmable Connectivity Gateway Name
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get a Gateway resource by name.

SELECT
location,
properties,
tags
FROM azure.programmableconnectivity.gateways
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND gatewayName = '{{ gatewayName }}' -- required
;

INSERT examples

Create or update an APC Gateway.

INSERT INTO azure.programmableconnectivity.gateways (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
gatewayName
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ gatewayName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Update Gateway tags.

UPDATE azure.programmableconnectivity.gateways
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND gatewayName = '{{ gatewayName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Delete a Gateway.

DELETE FROM azure.programmableconnectivity.gateways
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND gatewayName = '{{ gatewayName }}' --required
;