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

The following fields are returned by SELECT queries:

The response body contains the specified API link entity.

NameDatatypeDescription
propertiesobjectProduct-API link entity contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, productId, apiLinkId, subscriptionIdGets the API link for the product.
list_by_productselectresourceGroupName, serviceName, productId, subscriptionId$filter, $top, $skipLists a collection of the API links associated with a product.
create_or_updateinsertresourceGroupName, serviceName, productId, apiLinkId, subscriptionIdAdds an API to the specified product via link.
deletedeleteresourceGroupName, serviceName, productId, apiLinkId, subscriptionIdDeletes the specified API from the specified product.

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
apiLinkIdstringProduct-API link identifier. Must be unique in the current API Management service instance.
productIdstringProduct identifier. Must be unique in the current API Management service instance.
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>| apiId | 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

Gets the API link for the product.

SELECT
properties
FROM azure.api_management.product_api_links
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND productId = '{{ productId }}' -- required
AND apiLinkId = '{{ apiLinkId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Adds an API to the specified product via link.

INSERT INTO azure.api_management.product_api_links (
data__properties,
resourceGroupName,
serviceName,
productId,
apiLinkId,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ productId }}',
'{{ apiLinkId }}',
'{{ subscriptionId }}'
RETURNING
properties
;

DELETE examples

Deletes the specified API from the specified product.

DELETE FROM azure.api_management.product_api_links
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND productId = '{{ productId }}' --required
AND apiLinkId = '{{ apiLinkId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;