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
The following fields are returned by SELECT
queries:
- get
- list_by_product
The response body contains the specified API link entity.
Name | Datatype | Description |
---|---|---|
properties | object | Tag-API link entity contract properties. |
The response body contains a collection of API link entities associated with a tag.
Name | Datatype | Description |
---|---|---|
properties | object | Tag-API link entity contract properties. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , serviceName , tagId , apiLinkId , subscriptionId | Gets the API link for the tag. | |
list_by_product | select | resourceGroupName , serviceName , tagId , subscriptionId | $filter , $top , $skip | Lists a collection of the API links associated with a tag. |
create_or_update | insert | resourceGroupName , serviceName , tagId , apiLinkId , subscriptionId | Adds an API to the specified tag via link. | |
delete | delete | resourceGroupName , serviceName , tagId , apiLinkId , subscriptionId | Deletes 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.
Name | Datatype | Description |
---|---|---|
apiLinkId | string | Tag-API link identifier. Must be unique in the current API Management service instance. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
serviceName | string | The name of the API Management service. |
subscriptionId | string | The ID of the target subscription. |
tagId | string | Tag identifier. Must be unique in the current API Management service instance. |
$filter | string | | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br> |
$skip | integer (int32) | Number of records to skip. |
$top | integer (int32) | Number of records to return. |
SELECT
examples
- get
- list_by_product
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
;
Lists a collection of the API links associated with a tag.
SELECT
properties
FROM azure.api_management.tag_api_links
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND tagId = '{{ tagId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
;
INSERT
examples
- create_or_update
- Manifest
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
;
# Description fields are for documentation purposes
- name: tag_api_links
props:
- name: resourceGroupName
value: string
description: Required parameter for the tag_api_links resource.
- name: serviceName
value: string
description: Required parameter for the tag_api_links resource.
- name: tagId
value: string
description: Required parameter for the tag_api_links resource.
- name: apiLinkId
value: string
description: Required parameter for the tag_api_links resource.
- name: subscriptionId
value: string
description: Required parameter for the tag_api_links resource.
- name: properties
value: object
description: |
Tag-API link entity contract properties.
DELETE
examples
- delete
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
;