Skip to main content

api_tag_descriptions

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

Overview

Nameapi_tag_descriptions
TypeResource
Idazure.api_management.api_tag_descriptions

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
apiIdtextfield from the properties object
display_nametextfield from the properties object
external_docs_descriptiontextfield from the properties object
external_docs_urltextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagDescriptionIdtextfield from the properties object
tag_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, resourceGroupName, serviceName, subscriptionId, tagDescriptionIdGet Tag description in scope of API
list_by_serviceSELECTapiId, resourceGroupName, serviceName, subscriptionIdLists 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_updateINSERTapiId, resourceGroupName, serviceName, subscriptionId, tagDescriptionIdCreate/Update tag description in scope of the Api.
deleteDELETEIf-Match, apiId, resourceGroupName, serviceName, subscriptionId, tagDescriptionIdDelete tag description for the Api.

SELECT examples

Lists 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

SELECT
description,
apiId,
display_name,
external_docs_description,
external_docs_url,
resourceGroupName,
serviceName,
subscriptionId,
tagDescriptionId,
tag_id
FROM azure.api_management.vw_api_tag_descriptions
WHERE apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.api_tag_descriptions (
apiId,
resourceGroupName,
serviceName,
subscriptionId,
tagDescriptionId,
properties
)
SELECT
'{{ apiId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ tagDescriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified api_tag_descriptions resource.

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