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

NameDatatypeDescription
descriptiontextfield from the properties object
created_date_timetextfield from the properties object
is_currenttextfield from the properties object
portalRevisionIdtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
statustextfield from the properties object
status_detailstextfield from the properties object
subscriptionIdtextfield from the properties object
updated_date_timetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTportalRevisionId, resourceGroupName, serviceName, subscriptionIdGets the developer portal's revision specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists developer portal's revisions.
create_or_updateINSERTportalRevisionId, resourceGroupName, serviceName, subscriptionIdCreates a new developer portal's revision by running the portal's publishing. The isCurrent property indicates if the revision is publicly accessible.
updateUPDATEIf-Match, portalRevisionId, resourceGroupName, serviceName, subscriptionIdUpdates the description of specified portal revision or makes it current.

SELECT examples

Lists developer portal's revisions.

SELECT
description,
created_date_time,
is_current,
portalRevisionId,
provisioning_state,
resourceGroupName,
serviceName,
status,
status_details,
subscriptionId,
updated_date_time
FROM azure.api_management.vw_portal_revisions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a portal_revisions resource.

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