Skip to main content

product_apis

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

Overview

Nameproduct_apis
TypeResource
Idazure.api_management.product_apis

Fields

NameDatatypeDescription
propertiesobjectAPI Entity Properties

Methods

NameAccessible byRequired ParamsDescription
list_by_productSELECTproductId, resourceGroupName, serviceName, subscriptionIdLists a collection of the APIs associated with a product.
create_or_updateINSERTapiId, productId, resourceGroupName, serviceName, subscriptionIdAdds an API to the specified product.
deleteDELETEapiId, productId, resourceGroupName, serviceName, subscriptionIdDeletes the specified API from the specified product.

SELECT examples

Lists a collection of the APIs associated with a product.

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

INSERT example

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

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

DELETE example

Deletes the specified product_apis resource.

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