tag_api_links
Creates, updates, deletes, gets or lists a tag_api_links
resource.
Overview
Name | tag_api_links |
Type | Resource |
Id | azure.api_management.tag_api_links |
Fields
- vw_tag_api_links
- tag_api_links
Name | Datatype | Description |
---|---|---|
apiLinkId | text | field from the properties object |
api_id | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tagId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Tag-API link entity properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apiLinkId, resourceGroupName, serviceName, subscriptionId, tagId | Gets the API link for the tag. |
list_by_product | SELECT | resourceGroupName, serviceName, subscriptionId, tagId | Lists a collection of the API links associated with a tag. |
create_or_update | INSERT | apiLinkId, resourceGroupName, serviceName, subscriptionId, tagId | Adds an API to the specified tag via link. |
delete | DELETE | apiLinkId, resourceGroupName, serviceName, subscriptionId, tagId | Deletes the specified API from the specified tag. |
SELECT
examples
Lists a collection of the API links associated with a tag.
- vw_tag_api_links
- tag_api_links
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 }}';
SELECT
properties
FROM azure.api_management.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.tag_api_links (
apiLinkId,
resourceGroupName,
serviceName,
subscriptionId,
tagId,
properties
)
SELECT
'{{ apiLinkId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ tagId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: apiId
value: string
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 }}';