Skip to main content

api_wikis

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

Overview

Nameapi_wikis
TypeResource
Idazure.api_management.api_wikis

Fields

The following fields are returned by SELECT queries:

The response body contains the specified Wiki entity.

NameDatatypeDescription
propertiesobjectWiki details.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, apiId, subscriptionIdGets the details of the Wiki for an API specified by its identifier.
listselectresourceGroupName, serviceName, apiId, subscriptionId$filter, $top, $skipGets the wikis for an API specified by its identifier.
create_or_updateinsertresourceGroupName, serviceName, apiId, subscriptionIdIf-MatchCreates a new Wiki for an API or updates an existing one.
updateupdateresourceGroupName, serviceName, apiId, If-Match, subscriptionIdUpdates the details of the Wiki for an API specified by its identifier.
deletedeleteresourceGroupName, serviceName, apiId, If-Match, subscriptionIdDeletes the specified Wiki 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.
apiIdstringAPI 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 Wiki for an API specified by its identifier.

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

INSERT examples

Creates a new Wiki for an API or updates an existing one.

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

UPDATE examples

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

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

DELETE examples

Deletes the specified Wiki from an API.

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