Skip to main content

api_gateways

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

Overview

Nameapi_gateways
TypeResource
Idazure.api_management.api_gateways

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
backendtextfield from the properties object
configuration_apitextfield from the properties object
created_at_utctextfield from the properties object
etagtextETag of the resource.
frontendtextfield from the properties object
gatewayNametextfield from the properties object
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextAPI Management gateway resource SKU properties.
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
target_provisioning_statetextfield from the properties object
typetextResource type for API Management resource is set to Microsoft.ApiManagement.
virtual_network_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgatewayName, resourceGroupName, subscriptionIdGets an API Management gateway resource description.
listSELECTsubscriptionIdList all API Management gateways within a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all API Management gateways within a resource group.
create_or_updateINSERTgatewayName, resourceGroupName, subscriptionId, data__location, data__properties, data__skuCreates or updates an API Management gateway. This is long running operation and could take several minutes to complete.
deleteDELETEgatewayName, resourceGroupName, subscriptionIdDeletes an existing API Management gateway.
updateUPDATEgatewayName, resourceGroupName, subscriptionIdUpdates an existing API Management gateway.

SELECT examples

List all API Management gateways within a subscription.

SELECT
id,
name,
backend,
configuration_api,
created_at_utc,
etag,
frontend,
gatewayName,
location,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags,
target_provisioning_state,
type,
virtual_network_type
FROM azure.api_management.vw_api_gateways
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.api_gateways (
gatewayName,
resourceGroupName,
subscriptionId,
data__location,
data__properties,
data__sku,
properties,
sku,
location,
tags
)
SELECT
'{{ gatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ data__sku }}',
'{{ properties }}',
'{{ sku }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a api_gateways resource.

/*+ update */
UPDATE azure.api_management.api_gateways
SET
properties = '{{ properties }}',
sku = '{{ sku }}',
tags = '{{ tags }}'
WHERE
gatewayName = '{{ gatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified api_gateways resource.

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