Skip to main content

api_tag_description

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

Overview

Nameapi_tag_description
TypeResource
Idazure.api_management.api_tag_description

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
descriptionstringDescription of the Tag.
displayNamestringTag name.
externalDocsDescriptionstringDescription of the external resources describing the tag.
externalDocsUrlstringAbsolute URL of external resources describing the tag.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagIdstringIdentifier of the tag in the form of /tags/{tagId}.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, api_id, tag_description_id, subscription_idGet Tag description in scope of API.
list_by_serviceselectresource_group_name, service_name, api_id, subscription_id$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_updateinsertresource_group_name, service_name, api_id, tag_description_id, subscription_idCreate/Update tag description in scope of the Api.
create_or_updatereplaceresource_group_name, service_name, api_id, tag_description_id, subscription_idCreate/Update tag description in scope of the Api.
deletedeleteresource_group_name, service_name, api_id, tag_description_id, subscription_idDelete tag description for the Api.
get_entity_tagexecresource_group_name, service_name, api_id, tag_description_id, subscription_idGets the entity state version of the tag specified by its identifier.

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
api_idstringAPI 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. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring
tag_description_idstringTag description identifier. Used when creating tagDescription for API/Tag association. Based on API and Tag names. Required.
$filterstring| Field | Usage | Supported operators | Supported functions ||-------------|-------------|-------------|-------------|| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith || name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |. Default value is None.
$skipintegerNumber of records to skip. Default value is None.
$topintegerNumber of records to return. Default value is None.

SELECT examples

Get Tag description in scope of API.

SELECT
id,
name,
description,
displayName,
externalDocsDescription,
externalDocsUrl,
systemData,
tagId,
type
FROM azure.api_management.api_tag_description
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND api_id = '{{ api_id }}' -- required
AND tag_description_id = '{{ tag_description_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create/Update tag description in scope of the Api.

INSERT INTO azure.api_management.api_tag_description (
properties,
resource_group_name,
service_name,
api_id,
tag_description_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ api_id }}',
'{{ tag_description_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create/Update tag description in scope of the Api.

REPLACE azure.api_management.api_tag_description
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND api_id = '{{ api_id }}' --required
AND tag_description_id = '{{ tag_description_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete tag description for the Api.

DELETE FROM azure.api_management.api_tag_description
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND api_id = '{{ api_id }}' --required
AND tag_description_id = '{{ tag_description_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the entity state version of the tag specified by its identifier.

EXEC azure.api_management.api_tag_description.get_entity_tag 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@api_id='{{ api_id }}' --required,
@tag_description_id='{{ tag_description_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;