Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idazure.api_management.gateways

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
gatewayIdtextfield from the properties object
location_datatextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgatewayId, resourceGroupName, serviceName, subscriptionIdGets the details of the Gateway specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists a collection of gateways registered with service instance.
create_or_updateINSERTgatewayId, resourceGroupName, serviceName, subscriptionIdCreates or updates a Gateway to be used in Api Management instance.
deleteDELETEIf-Match, gatewayId, resourceGroupName, serviceName, subscriptionIdDeletes specific Gateway.
updateUPDATEIf-Match, gatewayId, resourceGroupName, serviceName, subscriptionIdUpdates the details of the gateway specified by its identifier.
generate_tokenEXECgatewayId, resourceGroupName, serviceName, subscriptionId, data__expiry, data__keyTypeGets the Shared Access Authorization Token for the gateway.
invalidate_debug_credentialsEXECgatewayId, resourceGroupName, serviceName, subscriptionIdAction is invalidating all debug credentials issued for gateway.
regenerate_keyEXECgatewayId, resourceGroupName, serviceName, subscriptionId, data__keyTypeRegenerates specified gateway key invalidating any tokens created with it.

SELECT examples

Lists a collection of gateways registered with service instance.

SELECT
description,
gatewayId,
location_data,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.gateways (
gatewayId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ gatewayId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a gateways resource.

/*+ update */
UPDATE azure.api_management.gateways
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND gatewayId = '{{ gatewayId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified gateways resource.

/*+ delete */
DELETE FROM azure.api_management.gateways
WHERE If-Match = '{{ If-Match }}'
AND gatewayId = '{{ gatewayId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';