Skip to main content

api_gateway

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

Overview

Nameapi_gateway
TypeResource
Idazure.api_management.api_gateway

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
backendobjectInformation regarding how the gateway should integrate with backend systems.
configurationApiobjectInformation regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU.
createdAtUtcstring (date-time)Creation UTC date of the API Management gateway.The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
etagstringETag of the resource.
frontendobjectInformation regarding how the gateway should be exposed.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted.
skuobjectSKU properties of the API Management gateway. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
targetProvisioningStatestringThe provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
virtualNetworkTypestringThe type of VPN in which API Management gateway needs to be configured in. Known values are: "None", "External", and "Internal". (None, External, Internal)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, gateway_name, subscription_idGets an API Management gateway resource description.
list_by_resource_groupselectresource_group_name, subscription_idList all API Management gateways within a resource group.
listselectsubscription_idList all API Management gateways within a subscription.
create_or_updateinsertresource_group_name, gateway_name, subscription_id, location, properties, skuCreates or updates an API Management gateway. This is long running operation and could take several minutes to complete.
updateupdateresource_group_name, gateway_name, subscription_idUpdates an existing API Management gateway.
create_or_updatereplaceresource_group_name, gateway_name, subscription_id, location, properties, skuCreates or updates an API Management gateway. This is long running operation and could take several minutes to complete.
deletedeleteresource_group_name, gateway_name, subscription_idDeletes 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
gateway_namestringThe name of the API Management gateway. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets an API Management gateway resource description.

SELECT
id,
name,
backend,
configurationApi,
createdAtUtc,
etag,
frontend,
location,
provisioningState,
sku,
systemData,
tags,
targetProvisioningState,
type,
virtualNetworkType
FROM azure.api_management.api_gateway
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND gateway_name = '{{ gateway_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- 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_gateway (
tags,
location,
properties,
sku,
resource_group_name,
gateway_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ sku }}' /* required */,
'{{ resource_group_name }}',
'{{ gateway_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Updates an existing API Management gateway.

UPDATE azure.api_management.api_gateway
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

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

REPLACE azure.api_management.api_gateway
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
AND sku = '{{ sku }}' --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_gateway
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;