Skip to main content

gateway_apis

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

Overview

Namegateway_apis
TypeResource
Idazure.api_management.gateway_apis

Fields

The following fields are returned by SELECT queries:

The response body contains a collection of Api entities in the gateway.

NameDatatypeDescription
propertiesobjectAPI entity contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_serviceselectresourceGroupName, serviceName, gatewayId, subscriptionId$filter, $top, $skipLists a collection of the APIs associated with a gateway.
create_or_updateinsertresourceGroupName, serviceName, gatewayId, apiId, subscriptionIdAdds an API to the specified Gateway.
deletedeleteresourceGroupName, serviceName, gatewayId, apiId, subscriptionIdDeletes the specified API from the specified 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
apiIdstringAPI identifier. Must be unique in the current API Management service instance.
gatewayIdstringGateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.

SELECT examples

Lists a collection of the APIs associated with a gateway.

SELECT
properties
FROM azure.api_management.gateway_apis
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND gatewayId = '{{ gatewayId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
;

INSERT examples

Adds an API to the specified Gateway.

INSERT INTO azure.api_management.gateway_apis (
data__properties,
resourceGroupName,
serviceName,
gatewayId,
apiId,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ gatewayId }}',
'{{ apiId }}',
'{{ subscriptionId }}'
RETURNING
properties
;

DELETE examples

Deletes the specified API from the specified Gateway.

DELETE FROM azure.api_management.gateway_apis
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND gatewayId = '{{ gatewayId }}' --required
AND apiId = '{{ apiId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;