Skip to main content

documentations

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

Overview

Namedocumentations
TypeResource
Idazure.api_management.documentations

Fields

NameDatatypeDescription
contenttextfield from the properties object
documentationIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdocumentationId, resourceGroupName, serviceName, subscriptionIdGets the details of the Documentation specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists all Documentations of the API Management service instance.
create_or_updateINSERTdocumentationId, resourceGroupName, serviceName, subscriptionIdCreates a new Documentation or updates an existing one.
deleteDELETEIf-Match, documentationId, resourceGroupName, serviceName, subscriptionIdDeletes the specified Documentation from an API.
updateUPDATEIf-Match, documentationId, resourceGroupName, serviceName, subscriptionIdUpdates the details of the Documentation for an API specified by its identifier.

SELECT examples

Lists all Documentations of the API Management service instance.

SELECT
content,
documentationId,
resourceGroupName,
serviceName,
subscriptionId,
title
FROM azure.api_management.vw_documentations
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a documentations resource.

/*+ update */
UPDATE azure.api_management.documentations
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND documentationId = '{{ documentationId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified documentations resource.

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