Skip to main content

tag_api_links

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

Overview

Nametag_api_links
TypeResource
Idazure.api_management.tag_api_links

Fields

The following fields are returned by SELECT queries:

The response body contains the specified API 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, apiLinkId, subscriptionIdGets the API link for the tag.
list_by_productselectresourceGroupName, serviceName, tagId, subscriptionId$filter, $top, $skipLists a collection of the API links associated with a tag.
create_or_updateinsertresourceGroupName, serviceName, tagId, apiLinkId, subscriptionIdAdds an API to the specified tag via link.
deletedeleteresourceGroupName, serviceName, tagId, apiLinkId, subscriptionIdDeletes the specified API 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
apiLinkIdstringTag-API 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>| 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 tag.

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

INSERT examples

Adds an API to the specified tag via link.

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

DELETE examples

Deletes the specified API from the specified tag.

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