Skip to main content

product_api_links

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

Overview

Nameproduct_api_links
TypeResource
Idazure.api_management.product_api_links

Fields

NameDatatypeDescription
apiLinkIdtextfield from the properties object
api_idtextfield from the properties object
productIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiLinkId, productId, resourceGroupName, serviceName, subscriptionIdGets the API link for the product.
list_by_productSELECTproductId, resourceGroupName, serviceName, subscriptionIdLists a collection of the API links associated with a product.
create_or_updateINSERTapiLinkId, productId, resourceGroupName, serviceName, subscriptionIdAdds an API to the specified product via link.
deleteDELETEapiLinkId, productId, resourceGroupName, serviceName, subscriptionIdDeletes the specified API from the specified product.

SELECT examples

Lists a collection of the API links associated with a product.

SELECT
apiLinkId,
api_id,
productId,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_product_api_links
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_api_links resource.

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

DELETE example

Deletes the specified product_api_links resource.

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