Skip to main content

api_gateways

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

Overview

Nameapi_gateways
TypeResource
Idazure.api_management.api_gateways

Fields

The following fields are returned by SELECT queries:

Successfully got the API Management gateway Resource.

NameDatatypeDescription
idstringResource ID.
namestringResource name.
etagstringETag of the resource.
locationstringResource location.
propertiesobjectProperties of the API Management gateway.
skuobjectSKU properties of the API Management gateway.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.
typestringResource type for API Management resource is set to Microsoft.ApiManagement.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, gatewayName, subscriptionIdGets an API Management gateway resource description.
list_by_resource_groupselectresourceGroupName, subscriptionIdList all API Management gateways within a resource group.
listselectsubscriptionIdList all API Management gateways within a subscription.
create_or_updateinsertresourceGroupName, gatewayName, subscriptionId, data__location, data__sku, data__propertiesCreates or updates an API Management gateway. This is long running operation and could take several minutes to complete.
updateupdateresourceGroupName, gatewayName, subscriptionIdUpdates an existing API Management gateway.
deletedeleteresourceGroupName, gatewayName, subscriptionIdDeletes an existing API Management 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
gatewayNamestringThe name of the API Management gateway.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets an API Management gateway resource description.

SELECT
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.api_management.api_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND gatewayName = '{{ gatewayName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates an API Management gateway. This is long running operation and could take several minutes to complete.

INSERT INTO azure.api_management.api_gateways (
data__properties,
data__sku,
data__location,
data__tags,
resourceGroupName,
gatewayName,
subscriptionId
)
SELECT
'{{ properties }}' /* required */,
'{{ sku }}' /* required */,
'{{ location }}' /* required */,
'{{ tags }}',
'{{ resourceGroupName }}',
'{{ gatewayName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Updates an existing API Management gateway.

UPDATE azure.api_management.api_gateways
SET
data__properties = '{{ properties }}',
data__sku = '{{ sku }}',
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND gatewayName = '{{ gatewayName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes an existing API Management gateway.

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