Skip to main content

portal_revisions

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

Overview

Nameportal_revisions
TypeResource
Idazure.api_management.portal_revisions

Fields

The following fields are returned by SELECT queries:

Gets the specified portal's revision.

NameDatatypeDescription
propertiesobjectProperties of the portal revisions.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, portalRevisionId, subscriptionIdGets the developer portal's revision specified by its identifier.
list_by_serviceselectresourceGroupName, serviceName, subscriptionId$filter, $top, $skipLists developer portal's revisions.
create_or_updateinsertresourceGroupName, serviceName, portalRevisionId, subscriptionIdCreates a new developer portal's revision by running the portal's publishing. The isCurrent property indicates if the revision is publicly accessible.
updateupdateresourceGroupName, serviceName, portalRevisionId, If-Match, subscriptionIdUpdates the description of specified portal revision or makes it current.

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.
portalRevisionIdstringPortal revision 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 | Supported operators | Supported functions | |-------------|------------------------|-----------------------------------|
|name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| |isCurrent | eq, ne | |
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.

SELECT examples

Gets the developer portal's revision specified by its identifier.

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

INSERT examples

Creates a new developer portal's revision by running the portal's publishing. The isCurrent property indicates if the revision is publicly accessible.

INSERT INTO azure.api_management.portal_revisions (
data__properties,
resourceGroupName,
serviceName,
portalRevisionId,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ portalRevisionId }}',
'{{ subscriptionId }}'
RETURNING
properties
;

UPDATE examples

Updates the description of specified portal revision or makes it current.

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