Skip to main content

workspace_api_revisions

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

Overview

Nameworkspace_api_revisions
TypeResource
Idazure.api_management.workspace_api_revisions

Fields

NameDatatypeDescription
descriptionstringDescription of the API Revision.
apiIdstringIdentifier of the API Revision.
apiRevisionstringRevision number of API.
createdDateTimestringThe time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
isCurrentbooleanIndicates if API revision is accessible via the gateway.
isOnlinebooleanIndicates if API revision is the current api revision.
privateUrlstringGateway URL for accessing the non-current API Revision.
updatedDateTimestringThe time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

Methods

NameAccessible byRequired ParamsDescription
list_by_serviceSELECTapiId, resourceGroupName, serviceName, subscriptionId, workspaceIdLists all revisions of an API.

SELECT examples

Lists all revisions of an API.

SELECT
description,
apiId,
apiRevision,
createdDateTime,
isCurrent,
isOnline,
privateUrl,
updatedDateTime
FROM azure.api_management.workspace_api_revisions
WHERE apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';