Skip to main content

api_wikis

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

Overview

Nameapi_wikis
TypeResource
Idazure.api_management.api_wikis

Fields

NameDatatypeDescription
apiIdtextfield from the properties object
documentstextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, resourceGroupName, serviceName, subscriptionIdGets the details of the Wiki for an API specified by its identifier.
listSELECTapiId, resourceGroupName, serviceName, subscriptionIdGets the wikis for an API specified by its identifier.
create_or_updateINSERTapiId, resourceGroupName, serviceName, subscriptionIdCreates a new Wiki for an API or updates an existing one.
deleteDELETEIf-Match, apiId, resourceGroupName, serviceName, subscriptionIdDeletes the specified Wiki from an API.
updateUPDATEIf-Match, apiId, resourceGroupName, serviceName, subscriptionIdUpdates the details of the Wiki for an API specified by its identifier.

SELECT examples

Gets the details of the Wiki for an API specified by its identifier.

SELECT
apiId,
documents,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_api_wikis
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_wikis resource.

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

UPDATE example

Updates a api_wikis resource.

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

DELETE example

Deletes the specified api_wikis resource.

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