Skip to main content

api_tag_descriptions

Creates, updates, deletes, gets or lists an api_tag_descriptions resource.

Overview

Nameapi_tag_descriptions
TypeResource
Idazure.api_management.api_tag_descriptions

Fields

The following fields are returned by SELECT queries:

Gets the description of the tag specified by its identifier in scope if the Api.

NameDatatypeDescription
propertiesobjectTagDescription entity contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, apiId, tagDescriptionId, subscriptionIdGet Tag description in scope of API
list_by_serviceselectresourceGroupName, serviceName, apiId, subscriptionId$filter, $top, $skipLists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations
create_or_updateinsertresourceGroupName, serviceName, apiId, tagDescriptionId, subscriptionIdIf-MatchCreate/Update tag description in scope of the Api.
deletedeleteresourceGroupName, serviceName, apiId, tagDescriptionId, If-Match, subscriptionIdDelete tag description for the Api.

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
If-MatchstringETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
apiIdstringAPI revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
tagDescriptionIdstringTag description identifier. Used when creating tagDescription for API/Tag association. Based on API and Tag names.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| name | 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.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.

SELECT examples

Get Tag description in scope of API

SELECT
properties
FROM azure.api_management.api_tag_descriptions
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND apiId = '{{ apiId }}' -- required
AND tagDescriptionId = '{{ tagDescriptionId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Create/Update tag description in scope of the Api.

INSERT INTO azure.api_management.api_tag_descriptions (
data__properties,
resourceGroupName,
serviceName,
apiId,
tagDescriptionId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ apiId }}',
'{{ tagDescriptionId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

DELETE examples

Delete tag description for the Api.

DELETE FROM azure.api_management.api_tag_descriptions
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND apiId = '{{ apiId }}' --required
AND tagDescriptionId = '{{ tagDescriptionId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;