Skip to main content

portal_revision

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

Overview

Nameportal_revision
TypeResource
Idazure.api_management.portal_revision

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
createdDateTimestring (date-time)Portal's revision creation date and time.
descriptionstringPortal revision description.
isCurrentbooleanIndicates if the portal's revision is public.
provisioningStatestringThe provisioning state.
statusstringStatus of the portal's revision. Known values are: "pending", "publishing", "completed", and "failed". (pending, publishing, completed, failed)
statusDetailsstringPortal revision publishing status details.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
updatedDateTimestring (date-time)Last updated date and time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, portal_revision_id, subscription_idGets the developer portal's revision specified by its identifier.
list_by_serviceselectresource_group_name, service_name, subscription_id$filter, $top, $skipLists developer portal's revisions.
create_or_updateinsertresource_group_name, service_name, portal_revision_id, subscription_idCreates a new developer portal's revision by running the portal's publishing. The isCurrent property indicates if the revision is publicly accessible.
updateupdateresource_group_name, service_name, portal_revision_id, subscription_idUpdates the description of specified portal revision or makes it current.
create_or_updatereplaceresource_group_name, service_name, portal_revision_id, subscription_idCreates a new developer portal's revision by running the portal's publishing. The isCurrent property indicates if the revision is publicly accessible.
get_entity_tagexecresource_group_name, service_name, portal_revision_id, subscription_idGets the developer portal revision specified by its identifier.

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
portal_revision_idstringPortal revision identifier. Must be unique in the current API Management service instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring
$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 | |. Default value is None.
$skipintegerNumber of records to skip. Default value is None.
$topintegerNumber of records to return. Default value is None.

SELECT examples

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

SELECT
id,
name,
createdDateTime,
description,
isCurrent,
provisioningState,
status,
statusDetails,
systemData,
type,
updatedDateTime
FROM azure.api_management.portal_revision
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND portal_revision_id = '{{ portal_revision_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- 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_revision (
properties,
resource_group_name,
service_name,
portal_revision_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ portal_revision_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

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

UPDATE azure.api_management.portal_revision
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND portal_revision_id = '{{ portal_revision_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

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

REPLACE azure.api_management.portal_revision
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND portal_revision_id = '{{ portal_revision_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

Lifecycle Methods

Gets the developer portal revision specified by its identifier.

EXEC azure.api_management.portal_revision.get_entity_tag 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@portal_revision_id='{{ portal_revision_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;