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

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiLinkId, resourceGroupName, serviceName, subscriptionId, tagIdGets the API link for the tag.
list_by_productSELECTresourceGroupName, serviceName, subscriptionId, tagIdLists a collection of the API links associated with a tag.
create_or_updateINSERTapiLinkId, resourceGroupName, serviceName, subscriptionId, tagIdAdds an API to the specified tag via link.
deleteDELETEapiLinkId, resourceGroupName, serviceName, subscriptionId, tagIdDeletes the specified API from the specified tag.

SELECT examples

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

SELECT
apiLinkId,
api_id,
resourceGroupName,
serviceName,
subscriptionId,
tagId
FROM azure.api_management.vw_tag_api_links
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND tagId = '{{ tagId }}';

INSERT example

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

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

DELETE example

Deletes the specified tag_api_links resource.

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