Skip to main content

documentations

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

Overview

Namedocumentations
TypeResource
Idazure.api_management.documentations

Fields

The following fields are returned by SELECT queries:

The response body contains the specified Documentation entity.

NameDatatypeDescription
propertiesobjectMarkdown Documentation details.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, documentationId, subscriptionIdGets the details of the Documentation specified by its identifier.
list_by_serviceselectresourceGroupName, serviceName, subscriptionId$filter, $top, $skipLists all Documentations of the API Management service instance.
create_or_updateinsertresourceGroupName, serviceName, documentationId, subscriptionIdIf-MatchCreates a new Documentation or updates an existing one.
updateupdateresourceGroupName, serviceName, documentationId, If-Match, subscriptionIdUpdates the details of the Documentation for an API specified by its identifier.
deletedeleteresourceGroupName, serviceName, documentationId, If-Match, subscriptionIdDeletes the specified Documentation from an 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.
documentationIdstringDocumentation identifier. Must be unique in the current API Management service instance.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | eq | contains |</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

Gets the details of the Documentation specified by its identifier.

SELECT
properties
FROM azure.api_management.documentations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND documentationId = '{{ documentationId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new Documentation or updates an existing one.

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

UPDATE examples

Updates the details of the Documentation for an API specified by its identifier.

UPDATE azure.api_management.documentations
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND documentationId = '{{ documentationId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes the specified Documentation from an API.

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