Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure.programmableconnectivity.gateways

Fields

NameDatatypeDescription
gatewayNametextfield from the properties object
gateway_base_urltextfield from the properties object
locationtextThe geo-location where the resource lives
operator_api_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTgatewayName, resourceGroupName, subscriptionIdGet a Gateway resource by name.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList Gateway resources by resource group.
list_by_subscriptionSELECTsubscriptionIdList Gateway resources by subscription ID.
create_or_updateINSERTgatewayName, resourceGroupName, subscriptionIdCreate or update an APC Gateway.
deleteDELETEgatewayName, resourceGroupName, subscriptionIdDelete a Gateway.
updateUPDATEgatewayName, resourceGroupName, subscriptionIdUpdate Gateway tags.

SELECT examples

List Gateway resources by subscription ID.

SELECT
gatewayName,
gateway_base_url,
location,
operator_api_connections,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.programmableconnectivity.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.programmableconnectivity.gateways (
gatewayName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ gatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a gateways resource.

/*+ update */
UPDATE azure.programmableconnectivity.gateways
SET
tags = '{{ tags }}'
WHERE
gatewayName = '{{ gatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified gateways resource.

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