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

NameDatatypeDescription
propertiesobjectAPI Entity Properties

Methods

NameAccessible byRequired ParamsDescription
list_by_serviceSELECTgatewayId, resourceGroupName, serviceName, subscriptionIdLists a collection of the APIs associated with a gateway.
create_or_updateINSERTapiId, gatewayId, resourceGroupName, serviceName, subscriptionIdAdds an API to the specified Gateway.
deleteDELETEapiId, gatewayId, resourceGroupName, serviceName, subscriptionIdDeletes the specified API from the specified Gateway.

SELECT examples

Lists a collection of the APIs associated with a gateway.

SELECT
properties
FROM azure.api_management.gateway_apis
WHERE gatewayId = '{{ gatewayId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified gateway_apis resource.

/*+ delete */
DELETE FROM azure.api_management.gateway_apis
WHERE apiId = '{{ apiId }}'
AND gatewayId = '{{ gatewayId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';