Skip to main content

tag_product_links

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

Overview

Nametag_product_links
TypeResource
Idazure.api_management.tag_product_links

Fields

The following fields are returned by SELECT queries:

The response body contains the specified product link entity.

NameDatatypeDescription
propertiesobjectTag-API link entity contract properties.

Methods

The following methods are available for this resource:

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

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
productLinkIdstringTag-product link 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.
tagIdstringTag identifier. Must be unique in the current API Management service instance.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| productId | 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 product link for the tag.

SELECT
properties
FROM azure.api_management.tag_product_links
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND tagId = '{{ tagId }}' -- required
AND productLinkId = '{{ productLinkId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Adds a product to the specified tag via link.

INSERT INTO azure.api_management.tag_product_links (
data__properties,
resourceGroupName,
serviceName,
tagId,
productLinkId,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ tagId }}',
'{{ productLinkId }}',
'{{ subscriptionId }}'
RETURNING
properties
;

DELETE examples

Deletes the specified product from the specified tag.

DELETE FROM azure.api_management.tag_product_links
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND tagId = '{{ tagId }}' --required
AND productLinkId = '{{ productLinkId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;